[
https://issues.apache.org/jira/browse/IMAGING-270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17218745#comment-17218745
]
Bruno P. Kinoshita edited comment on IMAGING-270 at 10/22/20, 5:01 AM:
-----------------------------------------------------------------------
Just realized the code is reading the BufferedImage, so the missing metadata
can be ignored (y)
was (Author: kinow):
Just realized the code is reading the BufferedImage, so the metadata can be
ignored (y)
> CMYK jpg file is not supported
> ------------------------------
>
> Key: IMAGING-270
> URL: https://issues.apache.org/jira/browse/IMAGING-270
> Project: Commons Imaging
> Issue Type: Bug
> Affects Versions: 1.0-alpha2
> Environment: Jave 8, WIN7 64bits, Eclipse JEE 2020-03
> Reporter: Yi SONG
> Priority: Minor
> Attachments: Channel_digital_image_CMYK_color.jpg
>
>
> Hi,
> It seems that the attached cmyk jpg file is not supported. after writing back
> to jpg, it becomes black.
> read:
> bufferedImage = Imaging.getBufferedImage(filecontents);
> filecontents is the path to the image file.
> write:
> ByteArrayOutputStream bos = new ByteArrayOutputStream();
> ImageIO.write(bufferedImage, "jpg", bos);
> byte[] result = bos.toByteArray();
> System.out.println(result.length);
> ImageIO.write(bufferedImage, "JPG", outFile);
--
This message was sent by Atlassian Jira
(v8.3.4#803005)