-
-
Notifications
You must be signed in to change notification settings - Fork 153
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
bug: needlessly modifying images' ICC profiles #347
Comments
Would like to do this Rust native and not pull in exiftool (appears to be quite difficult to get a static copy). |
Tried to rebase forked crate on main, now does not build due to:
Blocked on #341 |
I see. Is this the only unstable feature used by little_exif? If so I can look into a work around that would be part of the 0.6.0 release (which, as far as I can tell, is able to properly read in the EXIF information from your example file). Edit: Checked this, replacing seek_relative is viable and the only change required for 1.77.2 compatibility. Will be available in the 0.6.0 release. |
What happened?
Sending images via Revolt appears to strip ICC color profile information, which causes some images to display incorrectly. Upon sending an image like this to Revolt, the color information is stripped from the image & it ends up looking wrong. Discord only strips the ICC color information in previews, when pressing "view full image" it is actually intact. Additionally, most modern browsers support ICC color management.
I understand stripping metadata to preserve user privacy, but it is never harmful to keep the ICC color profile around to make sure the image's color information is displayed properly. Additionally, every iPhone takes images tagged with the P3 color profile. ICC color information can be preserved with
exiftool
by runningexiftool -all= --icc_profile:all input.jpg
.The text was updated successfully, but these errors were encountered: