tifig icon indicating copy to clipboard operation
tifig copied to clipboard

Image Quality

Open emjayhome opened this issue 6 years ago • 5 comments

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?

emjayhome avatar Jun 04 '18 16:06 emjayhome

I also tried some online conversion services which deliver similar results.

emjayhome avatar Jun 04 '18 16:06 emjayhome

This is because heic uses Display P3 color profile. Try something like this:

  1. Convert: $ tifig photo.heic photo.jpg
  2. Copy the color profile: $ exiftool -overwrite_original -TagsFromFile photo.heic -icc_profile photo.jpg
  3. Convert to sRGB: $ mogrify -profile /usr/share/argyllcms/ref/sRGB.icm photo.jpg
  4. Delete the sRGB profile if you like: $ exiftool -overwrite_original "-icc_profile:all=" photo.jpg

slalik avatar Jul 25 '18 16:07 slalik

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.

Flask avatar Aug 13 '18 08:08 Flask

This is because heic uses Display P3 color profile. Try something like this:

  1. Convert: $ tifig photo.heic photo.jpg
  2. Copy the color profile: $ exiftool -overwrite_original -TagsFromFile photo.heic -icc_profile photo.jpg
  3. Convert to sRGB: $ mogrify -profile /usr/share/argyllcms/ref/sRGB.icm photo.jpg
  4. 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 ?

bobmoff avatar Mar 06 '19 20:03 bobmoff

Where did you get the sRGB.icm file from ?

/usr/share/argyllcms/ref/sRGB.icm from https://www.argyllcms.com

slalik avatar Mar 06 '19 21:03 slalik