tifig
tifig copied to clipboard
Image Quality
Thanks for this great tool which I am using on my Ubuntu server for automatic image processing I am facing an issue with image quality though. Original images in heic format (from iPhone 7) look much more natural and vivid than their converted counterparts in jpg format. I assume others observe this issue as well? Any idea about what we can do about it?
I also tried some online conversion services which deliver similar results.
This is because heic uses Display P3 color profile. Try something like this:
- Convert:
$ tifig photo.heic photo.jpg
- Copy the color profile:
$ exiftool -overwrite_original -TagsFromFile photo.heic -icc_profile photo.jpg
- Convert to sRGB:
$ mogrify -profile /usr/share/argyllcms/ref/sRGB.icm photo.jpg
- Delete the sRGB profile if you like:
$ exiftool -overwrite_original "-icc_profile:all=" photo.jpg
Thanks @slalik for the detailed and working answer.
We used Tifig primarily for thumbnailing. Therefore we focused on speed not on feature completeness. "Reading" the Exif-data is a costly task.
This is because heic uses Display P3 color profile. Try something like this:
- Convert:
$ tifig photo.heic photo.jpg
- Copy the color profile:
$ exiftool -overwrite_original -TagsFromFile photo.heic -icc_profile photo.jpg
- Convert to sRGB:
$ mogrify -profile /usr/share/argyllcms/ref/sRGB.icm photo.jpg
- Delete the sRGB profile if you like:
$ exiftool -overwrite_original "-icc_profile:all=" photo.jpg
@slalik Tried this (without #4), but it does nothing to the photo.jpg, the image still has the issues described by @emjayhome
Where did you get the sRGB.icm file from ?
Where did you get the sRGB.icm file from ?
/usr/share/argyllcms/ref/sRGB.icm
from https://www.argyllcms.com