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

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

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            general@xmlgraphics.apache.org XML Graphics Project Mailing List
            jharrop Jason Harrop

            Dates

              Created:
              Updated:

              Slack

                Issue deployment