[
https://issues.apache.org/jira/browse/IMAGING-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202815#comment-17202815
]
Gary Lucas commented on IMAGING-201:
------------------------------------
I inspected the tags for this image and found that it stored using the CMYK
photometric interpreter. So the problem may be due to an issue in CMYK.
The CMYK model is based on the ink colors used in 4-color printing. To convert
the image to a Java buffered image, there is a CMYK-to-RGB conversion applied.
It is possible that there is something wrong with the conversion logic.
I did use the debugger to step through some of the logic related to
decompressing this image. At first glance, that appears to be working properly.
> Significant change in color of output image of tiff file
> --------------------------------------------------------
>
> Key: IMAGING-201
> URL: https://issues.apache.org/jira/browse/IMAGING-201
> Project: Commons Imaging
> Issue Type: Bug
> Components: Format: TIFF
> Affects Versions: 1.0-alpha1
> Reporter: Praful Vaishnav
> Priority: Major
> Attachments: SS_result.png, SS_source.png
>
>
> Hii.. I am reading tiff image file and using this library to convert it to
> PNG format. Resultant png file has significant change in color wrt its
> original tiff file. Below is the code :
> {code:java}
> File file = new File("C:\\original.tiff");
> BufferedImage bi = Imaging.getBufferedImage(file);
> File dstFile = new File("C:\\result.png");
> Imaging.writeImage(bi, dstFile, ImageFormats.PNG, null);
> {code}
> Reason could be :
> original image is 32 bit depth and result image is 24 bit depth. Is there any
> issue with 32 bit depth image file.
> Link for source tiff file -
> https://www.dropbox.com/s/kgqgdcygelkor8b/original.tiff?dl=0
> Attachements:
> SS_source.png - Screenshot of original tiff file
> SS_result.png - Screenshot of result png file
--
This message was sent by Atlassian Jira
(v8.3.4#803005)