You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ionut Jenescu (Jira)" <ji...@apache.org> on 2020/02/05 07:24:00 UTC

[jira] [Created] (IMAGING-250) Imaging.getBufferedImage(File file), and Imaging.getImageInfo(File file), convert CMYK in RGB

Ionut Jenescu created IMAGING-250:
-------------------------------------

             Summary: Imaging.getBufferedImage(File file), and Imaging.getImageInfo(File file), convert CMYK in RGB
                 Key: IMAGING-250
                 URL: https://issues.apache.org/jira/browse/IMAGING-250
             Project: Commons Imaging
          Issue Type: Bug
          Components: Format: TIFF
    Affects Versions: 1.0-alpha1
         Environment: Windows 10, OpenJDK 11.0.5
            Reporter: Ionut Jenescu
         Attachments: imgCMYK.tif

{code:java}
    File imgFile = new File("C:/Temp/imgCMYK.tif");
    try {
        BufferedImage bufImg = Imaging.getBufferedImage(imgFile);
        ImageInfo imgInfoCMYK = Imaging.getImageInfo(imgFile);
        System.out.println("Number of bands from buffered image: " + bufImg.getSampleModel().getNumBands());
        System.out.println("Color model from Imaging image: " + imgInfoCMYK.getColorType());
    } catch (Exception e) {
        e.printStackTrace();
    }
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)