How to change resolution metadata of a lossy image format like JPEG without recompression?
- forum_adm
- Site Admin
- Posts: 1647
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
Did you check: Always Add Exif?
- forum_adm
- Site Admin
- Posts: 1647
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
I rechecked with build 6125. The resolution of WebP is updated and shown in the browser.
But this works for WebP only if this option is active:
But this works for WebP only if this option is active:
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
"Change resolution lossless…" with the option "Always create EXIF"
1) Test result in GC v12 b6125:
WEBPs get their resolution changed.
But I get the same followup bug as in Save for Web: Browser column falsely shows resolution for WEBP files as 72 DPI regardless of real resolution
2) Feedback on the label "Always create EXIF":
- Sounds too general, could possibly evoke false interpretations: Not specific to this action, but that this is for WEBP or all files in general.
- Space is not an issue in this dialog. Better be specific and avoid extra documentation & support:
Or whatever is actually the case. Above text is exemplary.
1) Test result in GC v12 b6125:
2) Feedback on the label "Always create EXIF":
- Sounds too general, could possibly evoke false interpretations: Not specific to this action, but that this is for WEBP or all files in general.
- Space is not an issue in this dialog. Better be specific and avoid extra documentation & support:
Code: Select all
☐ Add metadata structure to file(s) if needed
If the processed file has no metadata structure yet,
this option will add one, which is a necessity to store the resolution info.
The metadata structure is file format specific:
- JPEG: EXIF header
- WEBP: EXIF chunk towards the file end
- PNG: pHYs tag
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
@forum_adm
1) In my previous post I proposed "metadata structure" as a more file format neutral terminology. Btw this new block should come last. On top the input, then the live preview calculations in cm and inch, then the option with the new label + explanation. Reaction appreciated.
2) Regarding PNGs this dialog totally misbehaves: PNG-pHYs is not updated at all. And EXIF IFD0 X / Y Resolution tags are ALWAYS added also when I have chosen "Always create EXIF" OFF. Tested in GC v12 b6132.
1) In my previous post I proposed "metadata structure" as a more file format neutral terminology. Btw this new block should come last. On top the input, then the live preview calculations in cm and inch, then the option with the new label + explanation. Reaction appreciated.
2) Regarding PNGs this dialog totally misbehaves: PNG-pHYs is not updated at all. And EXIF IFD0 X / Y Resolution tags are ALWAYS added also when I have chosen "Always create EXIF" OFF. Tested in GC v12 b6132.
- forum_adm
- Site Admin
- Posts: 1647
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
Ok, I will recheck the ExifTool command.
- forum_adm
- Site Admin
- Posts: 1647
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
I changed the function now. So, it should be self explaining:
Re: How to change resolution metadata of a lossy image format like JPEG without recompression?
1. Change only existing tags (may not change anything) → "Absolute scarcity mode".
2. Always write Exif tags, JFIF for JPEGs and pHYs for PNGs → "Absolute oversaturation mode"
• If a JPEG had only a JFIF tag or a PNG only a pPHYs tag, it gets an extra unnecessary Exif on top.
• Not that the bytes matter too much. But having attributes in multiple tags, poses the danger of later "running out of sync" given bad software later in the file's lifecycle. Hence "less is better".
• Well then why don't you select option 1 then, dummy?
• Answer: Working with heterogenous file sets: Some have no tags at all, some have only JFIF, some only pHYs, some only Exif, some may have multiple tags.
• Recommendation: There should be "middle ground" options too.
Code: Select all
Per file: [ Try existing tag only. If inexistent nothing changes. ▾ ]
Try existing tag. If inexistent add JFIF or pHYs.
Try existing tag. If inexistent add Exif.
Always write Exif tag + JFIF for JPEGs and pHYs for PNGs