Marco Paciucci created IMAGING-173:
--------------------------------------

             Summary: This image format (Jpeg-Custom) cannot be written.
                 Key: IMAGING-173
                 URL: https://issues.apache.org/jira/browse/IMAGING-173
             Project: Commons Imaging
          Issue Type: Bug
            Reporter: Marco Paciucci


Hello everyone,
I've coded the following:
bufferedImage = Imaging.getBufferedImage(imageDataBytes);
final ImageFormat format = Imaging.guessFormat(imageDataBytes);
String extension = format.getName();
String imageId = imageName + randomInt + "." + extension;
File imageFile = new File(imageId);
final Map<String, Object> optionalParams = new HashMap<String, Object>();
Imaging.writeImage(bufferedImage, imageFile, ImageFormats.JPEG, optionalParams);


This last line breaks and raises the issue above:
This image format (Jpeg-Custom) cannot be written.

Is this a bug?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to