commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Paciucci (JIRA)" <>
Subject [jira] [Created] (IMAGING-173) This image format (Jpeg-Custom) cannot be written.
Date Wed, 14 Oct 2015 13:52:05 GMT
Marco Paciucci created IMAGING-173:

             Summary: This image format (Jpeg-Custom) cannot be written.
                 Key: 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

View raw message