Uploaded image for project: 'XMLGraphicsCommons'
  1. XMLGraphicsCommons
  2. XGC-18

PNG's - warn if resolution can't be determined

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Resolution: Unresolved
    • 2.6
    • None
    • image codecs
    • None
    • Operating System: All
      Platform: All

    Description

      If, for a PNG image, ImageMagick's identify says:

      Resolution: 320x320
      Units: Undefined <----------------

      then ImageInfo will use a default value, using Toolkit.getDefaultToolkit().getScreenResolution(), which in my case is 160.

      Nothing wrong with that I suppose, but it would be helpful if a warning was logged or something, so you knew to fix the image.

      When PreloaderImageIO.preloadImage does:

      ImageIOUtil.extractResolution(iiometa, size);

      it is finding the Dimension child, but not "HorizontalPixelSize" or VerticalPixelSize (these are null).

      Attachments

        Activity

          People

            general@xmlgraphics.apache.org XML Graphics Project Mailing List
            jharrop Jason Harrop
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: