You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2014/09/03 11:43:32 UTC
[Xmlgraphics-fop Wiki] Update of "HowTo/ImageLoaderRawPNG" by LuisBernardo
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.
The "HowTo/ImageLoaderRawPNG" page has been changed by LuisBernardo:
https://wiki.apache.org/xmlgraphics-fop/HowTo/ImageLoaderRawPNG?action=diff&rev1=3&rev2=4
Comment:
removed line that disabled default image loader, to avoid confusing users
<image-loading>
<penalty value="-10000" class="org.apache.xmlgraphics.image.loader.impl.ImageLoaderRawPNG" />
<penalty value="INFINITE" class="org.apache.xmlgraphics.image.loader.impl.ImageLoaderPNG" />
- <penalty value="INFINITE" class="org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO" />
</image-loading>
<renderers>
<renderer mime="application/pdf">
@@ -21, +20 @@
</renderer>
</renderers>
}}}
- Note that in the above example the ImageLoaderPNG and the ImageLoaderImageIO image loaders were disabled. The penalty of -10000 (reverse penalty) compensates the default penalty of 1000, and makes the ImageLoaderRawPNG image loader the preferred one.
+ Note that in the above example the ImageLoaderPNG image loader has been disabled. The penalty of -10000 (reverse penalty) compensates the default penalty of 1000, and makes the ImageLoaderRawPNG image loader the preferred one (the default image loader, org.apache.xmlgraphics.image.loader.impl.imageio.ImageLoaderImageIO, has no intrinsic penalty).
- The ImageLoaderPNG image loader is similar to the ImageLoaderImageIO one, in the sense that it also decodes the IDAT chunk, but it does so using the org.apache.xmlgraphics.image.codec.png.PNGImageDecoder class instead of com.sun.imageio.plugins.png.PNGImageReader class.
+ The ImageLoaderPNG image loader is similar to the ImageLoaderImageIO one, in the sense that it also decodes the IDAT chunk, but it does so using the org.apache.xmlgraphics.image.codec.png.PNGImageDecoder class instead of com.sun.imageio.plugins.png.PNGImageReader class. In practical terms, it offers no advantages over the default ImageLoaderImageIO, except in situations where a JVM does not offer a PNG image reader.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org