You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (Jira)" <ji...@apache.org> on 2019/11/10 08:38:00 UTC

[jira] [Created] (IMAGING-237) The PNG parser must inform the user if the compression method is not supported

Bruno P. Kinoshita created IMAGING-237:
------------------------------------------

             Summary: The PNG parser must inform the user if the compression method is not supported
                 Key: IMAGING-237
                 URL: https://issues.apache.org/jira/browse/IMAGING-237
             Project: Commons Imaging
          Issue Type: Improvement
          Components: Format: PNG
    Affects Versions: 1.0-alpha1
            Reporter: Bruno P. Kinoshita


Today I was looking at the ICCP chunk type and the PNG image parser, and noticed that it was using the deflate compression only, regardless of the compression method value passed by the user.

The documentation does say that deflate (0) is the supported compression, but that vendor implementations may use different compression algorithms. So instead of trying to use deflate (which would raise a runtime exception), we should inform the user that the compression method is not supported.



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