commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno P. Kinoshita (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (IMAGING-209) PnmImageParser throws ImageWriteException when writing if PnmImageParser.PARAM_KEY_PNM_RAWBITS is provided
Date Sat, 23 Dec 2017 10:59:00 GMT

     [ https://issues.apache.org/jira/browse/IMAGING-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bruno P. Kinoshita resolved IMAGING-209.
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0

Merged, pull request closed, and changes.xml updated.

Thank you [~easypeasy] for your contribution!

Bruno

> PnmImageParser throws ImageWriteException when writing if PnmImageParser.PARAM_KEY_PNM_RAWBITS
is provided
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: IMAGING-209
>                 URL: https://issues.apache.org/jira/browse/IMAGING-209
>             Project: Commons Imaging
>          Issue Type: Bug
>          Components: Format: PNM
>            Reporter: Isak W
>            Assignee: Bruno P. Kinoshita
>             Fix For: 1.0
>
>
> Code sample:
> {code:java}
> Map<String, Object> params = new HashMap<>();
> params.put(PnmImageParser.PARAM_KEY_PNM_RAWBITS, PnmImageParser.PARAM_VALUE_PNM_RAWBITS_YES);
> Imaging.writeImage(image, file, ImageFormats.PNM, params);
> {code}
> Error message is: "Unknown parameter: PNM_RAWBITS:
> This happens because used parameters are cleared from the map after usage and any remaining
parameters are determined to be unknown, but PnmImageParser.PARAM_KEY_PNM_RAWBITS is never
cleared.
> I will provide a patch on Github shortly.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message