]> source.dussan.org Git - xmlgraphics-fop.git/commit
Activating ImageIOImage for reading PNG images in the ImageFactory made some test...
authorJeremias Maerki <jeremias@apache.org>
Mon, 24 Jul 2006 20:40:02 +0000 (20:40 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 24 Jul 2006 20:40:02 +0000 (20:40 +0000)
commit7754b133f96dbc2eca32311c2a118c27cce35755
tree4dc553a6cfb8f7f5c6c05189f7f60c2813398c4c
parentaf6f4d132387f3d900b4411037d455c64d74767b
Activating ImageIOImage for reading PNG images in the ImageFactory made some test cases fail. The reason is that the PNGReader cannot extract the image resolution and leaves the default of 72dpi.
Added code to inspect the image metadata for resolution info.
I added the same hack as is already used in PNGImage to force loading the whole image when the image dimensions are requested, i.e. getting the right image size is more important than efficient memory use for now.
The image package needs that redesign sooner or later....

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@425178 13f79535-47bb-0310-9956-ffa450edef68
src/java-1.4/org/apache/fop/image/ImageIOImage.java