Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-237

The PNG parser must inform the user if the compression method is not supported

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.0-alpha1
    • None
    • Format: PNG
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: