You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xmlgraphics.apache.org by "dian hina (Jira)" <ji...@apache.org> on 2021/06/26 20:29:02 UTC
[jira] [Updated] (XGC-18) PNG's - warn if resolution can't be
determined
[ https://issues.apache.org/jira/browse/XGC-18?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
dian hina updated XGC-18:
-------------------------
oke finish
> PNG's - warn if resolution can't be determined
> -----------------------------------------------
>
> Key: XGC-18
> URL: https://issues.apache.org/jira/browse/XGC-18
> Project: XMLGraphicsCommons
> Issue Type: Improvement
> Components: image codecs
> Affects Versions: 2.6
> Environment: Operating System: All
> Platform: All
> Reporter: Jason Harrop
> Assignee: XML Graphics Project Mailing List
>
> 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).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: general-help@xmlgraphics.apache.org