-
Notifications
You must be signed in to change notification settings - Fork 31
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
feature: support writing ICC color profiles #237
Comments
Hi, which formats specifically? |
The full specification for ICC color profile encoding is available here: https://www.color.org/specification/ICC.1-2022-05.pdf But it doesn't need to be implemented in this library. Ideally, zune-jpeg would simply provide something like |
Zune-jpeg is a decoder and it does support reading ICC profiles, zune-image
will hold an ICC reference in the metadata struct, encoding support is not
yet intergrated but can be done in due time.
…On Sun, 20 Oct 2024 at 22:36, Ophir LOJKINE ***@***.***> wrote:
The full specification for ICC color profile encoding is available here:
https://www.color.org/specification/ICC.1-2022-05.pdf
But it doesn't need to be implemented in this library. Ideally, zune-jpeg
would simply provide something like fn set_icc_profile(&mut self,
profile: &[u8]). And users would pass profiles either created by other
libraries or (more likely) extracted from the original image with
ImageDecoder::icc_profile
<https://docs.rs/image/latest/image/trait.ImageDecoder.html#method.icc_profile>
from image-rs.
—
Reply to this email directly, view it on GitHub
<#237 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFZRVE3VXF3I6UEFAYIJMHDZ4QA5JAVCNFSM6AAAAABP5W2IFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGE4TAMJWGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hello and thank you for this great library !
Issue: Currently, the image crate does not support writing ICC color profiles when encoding images. This can result in color inaccuracies or distortions.
Upstream issue:
Why ICC Profile Support Is Important: ICC (International Color Consortium) profiles define how colors should be interpreted by devices such as monitors, printers, and software. Without embedding an ICC profile in an image, there is no guarantee that the colors in the image will be displayed correctly. Generally images will be interpreted as sRGB by default, instead of the actual color palette of the image.
By supporting the writing of ICC profiles during image encoding, the
image
crate could ensure that images are displayed as intended across all platforms, and that opening reading an image and writing it back does not distort its colors.Requested Feature: Add support for embedding ICC profiles when saving images to ensure color fidelity and consistency.
The text was updated successfully, but these errors were encountered: