Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Quality #38

Open
emjayhome opened this issue Jun 4, 2018 · 5 comments
Open

Image Quality #38

emjayhome opened this issue Jun 4, 2018 · 5 comments

Comments

@emjayhome
Copy link

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
Copy link
Author

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

@slalik
Copy link

slalik commented Jul 25, 2018

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

@Flask
Copy link
Contributor

Flask commented Aug 13, 2018

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.

@bobmoff
Copy link

bobmoff commented Mar 6, 2019

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 ?

@slalik
Copy link

slalik commented Mar 6, 2019

Where did you get the sRGB.icm file from ?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants