You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jubal Kessler <ju...@cheeze.org> on 2008/08/27 23:09:39 UTC
Problem with inserting a PNG file
Greetings,
I'm attemping to display a PNG file, but I'm getting a "No
ImagePreloader found" error, and spending some time researching online
didn't help:
++ exec /usr/java/bin/java -classpath
/work/ui/pkgs/fop/Linux/lib/xmlgraphics-commons-1.3.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-ext.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-1.3.02.jar:/work/ui/pkgs/fop/Linux/lib/xercesImpl-2.7.1.jar:/work/ui/pkgs/fop/Linux/lib/xalan-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/serializer-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/mlibwrapper_jai.jar:/work/ui/pkgs/fop/Linux/lib/jai_core.jar:/work/ui/pkgs/fop/Linux/lib/jai_codec.jar:/work/ui/pkgs/fop/Linux/lib/commons-logging-1.0.4.jar:/work/ui/pkgs/fop/Linux/lib/commons-io-1.3.1.jar:/work/ui/pkgs/fop/Linux/lib/batik-all-1.7.jar:/work/ui/pkgs/fop/Linux/lib/avalon-framework-4.2.0.jar:/work/ui/pkgs/fop/Linux/build/fop.jar:/work/ui/pkgs/fop/Linux/build/fop-sandbox.jar:/work/ui/pkgs/fop/Linux/build/fop-hyph.jar:
org.apache.fop.cli.Main -xml MessageVolumeByCount-report.xml -xsl
report-pdf.xsl -pdf MessageVolumeByCount-report.pdf
Aug 27, 2008 1:54:34 PM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: No ImagePreloader found for
# Linux/fop -v
FOP Version 0.95beta
(am not sure what exact version it is, how to tell?)
# java -version
java version "1.5.0_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
# uname -a
Linux host.domain.com 2.6.24.4 #2 SMP PREEMPT Fri Apr 18 14:05:11 PDT
2008 x86_64 GNU/Linux
The PNG file's information (300 dpi) is:
# pnginfo image.png
image.png...
Image Width: 600 Image Length: 96
Bitdepth (Bits/Sample): 4
Channels (Samples/Pixel): 1
Pixel depth (Pixel Depth): 4
Colour Type (Photometric Interpretation): PALETTED COLOUR (16 colours,
0 transparent)
Image filter: Single row per byte filter
Interlacing: Adam7 interlacing
Compression Scheme: Deflate method 8, 32k window
Resolution: 11810, 11810 (pixels per meter)
FillOrder: msb-to-lsb
Byte Order: Network (Big Endian)
Number of text strings: 0 of 0
Offsets: 0, 0
I also had the same error from FOP when trying to load a simple JPG
version of the same file, saved from GIMP.
I am a little frustrated because there is no documentation on the Apache
FOP site for helping with troubleshooting this (I did look at
http://xmlgraphics.apache.org/fop/0.94/graphics.html and downloaded JAI
1.1.3, and it appears in the classpath (see above)). I do understand
that image formats are crazily complex, but there's no simple how-to
document (that I could find) to get basic image rendering set up in a
foolproof manner...
Thanks in advance for any assistance.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with inserting a PNG file
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Another idea is to upgrade to FOP 0.95 final since there's at least one
bug fixed in this area. If that doesn't help, please make the PNG (and
the JPEG generated by GIMP you mentioned) available so we can find out
what the problem is.
It's a good idea to check that you check with a Sun JVM if that's not
already the case. In the latest release we rely on ImageIO to load PNG
images. Some non-Sun JVMs might not be totally bug-free when it comes to
PNG loading.
On 28.08.2008 15:34:44 Jubal Kessler wrote:
> On 8/28/2008 4:03 AM, Chris Bowditch wrote:
>
> > Image IO library is missing from your classpath. The name of the JAR you
> > need is jai_imageio.jar.
>
> OK. I downloaded jai-imageio 1.1 from:
>
> https://jai-imageio.dev.java.net/binary-builds.html#Stable_builds
>
> ...and removed the previous JAI library, but I still see a failure.
> This is my updated classpath:
>
> ++ exec /usr/java/bin/java -classpath
> /work/ui/pkgs/fop/Linux/lib/xmlgraphics-commons-1.3.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-ext.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-1.3.02.jar:/work/ui/pkgs/fop/Linux/lib/xercesImpl-2.7.1.jar:/work/ui/pkgs/fop/Linux/lib/xalan-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/serializer-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/mlibwrapper_jai.jar:/work/ui/pkgs/fop/Linux/lib/jai_imageio.jar:/work/ui/pkgs/fop/Linux/lib/commons-logging-1.0.4.jar:/work/ui/pkgs/fop/Linux/lib/commons-io-1.3.1.jar:/work/ui/pkgs/fop/Linux/lib/clibwrapper_jiio.jar:/work/ui/pkgs/fop/Linux/lib/batik-all-1.7.jar:/work/ui/pkgs/fop/Linux/lib/avalon-framework-4.2.0.jar:/work/ui/pkgs/fop/Linux/build/fop.jar:/work/ui/pkgs/fop/Linux/build/fop-sandbox.jar:/work/ui/pkgs/fop/Linux/build/fop-hyph.jar:
> org.apache.fop.cli.Main
> -xml report.xml -xsl report-pdf.xsl -pdf report.pdf
>
> Aug 28, 2008 6:20:05 AM org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not available: No ImagePreloader found for
>
> Perhaps I completely misunderstand what is necessary to get this
> working, and apologize in advance. Can you assist further?
>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with inserting a PNG file
Posted by Jubal Kessler <ju...@cheeze.org>.
On 8/28/2008 9:34 AM, Jubal Kessler wrote:
> Aug 28, 2008 6:20:05 AM org.apache.fop.fo.flow.ExternalGraphic bind
> SEVERE: Image not available: No ImagePreloader found for
As closure, it turns out I had been staring too long at the same XSL-FO
template, and the problem was a simple error in external-graphics usage.
My apologies to all, and thanks for the replies.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with inserting a PNG file
Posted by Jubal Kessler <ju...@cheeze.org>.
On 8/28/2008 4:03 AM, Chris Bowditch wrote:
> Image IO library is missing from your classpath. The name of the JAR you
> need is jai_imageio.jar.
OK. I downloaded jai-imageio 1.1 from:
https://jai-imageio.dev.java.net/binary-builds.html#Stable_builds
...and removed the previous JAI library, but I still see a failure.
This is my updated classpath:
++ exec /usr/java/bin/java -classpath
/work/ui/pkgs/fop/Linux/lib/xmlgraphics-commons-1.3.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-ext.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-1.3.02.jar:/work/ui/pkgs/fop/Linux/lib/xercesImpl-2.7.1.jar:/work/ui/pkgs/fop/Linux/lib/xalan-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/serializer-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/mlibwrapper_jai.jar:/work/ui/pkgs/fop/Linux/lib/jai_imageio.jar:/work/ui/pkgs/fop/Linux/lib/commons-logging-1.0.4.jar:/work/ui/pkgs/fop/Linux/lib/commons-io-1.3.1.jar:/work/ui/pkgs/fop/Linux/lib/clibwrapper_jiio.jar:/work/ui/pkgs/fop/Linux/lib/batik-all-1.7.jar:/work/ui/pkgs/fop/Linux/lib/avalon-framework-4.2.0.jar:/work/ui/pkgs/fop/Linux/build/fop.jar:/work/ui/pkgs/fop/Linux/build/fop-sandbox.jar:/work/ui/pkgs/fop/Linux/build/fop-hyph.jar:
org.apache.fop.cli.Main
-xml report.xml -xsl report-pdf.xsl -pdf report.pdf
Aug 28, 2008 6:20:05 AM org.apache.fop.fo.flow.ExternalGraphic bind
SEVERE: Image not available: No ImagePreloader found for
Perhaps I completely misunderstand what is necessary to get this
working, and apologize in advance. Can you assist further?
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem with inserting a PNG file
Posted by Chris Bowditch <bo...@hotmail.com>.
Jubal Kessler wrote:
> Greetings,
Hi,
>
> I'm attemping to display a PNG file, but I'm getting a "No
> ImagePreloader found" error, and spending some time researching online
> didn't help:
>
> ++ exec /usr/java/bin/java -classpath
> /work/ui/pkgs/fop/Linux/lib/xmlgraphics-commons-1.3.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-ext.jar:/work/ui/pkgs/fop/Linux/lib/xml-apis-1.3.02.jar:/work/ui/pkgs/fop/Linux/lib/xercesImpl-2.7.1.jar:/work/ui/pkgs/fop/Linux/lib/xalan-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/serializer-2.7.0.jar:/work/ui/pkgs/fop/Linux/lib/mlibwrapper_jai.jar:/work/ui/pkgs/fop/Linux/lib/jai_core.jar:/work/ui/pkgs/fop/Linux/lib/jai_codec.jar:/work/ui/pkgs/fop/Linux/lib/commons-logging-1.0.4.jar:/work/ui/pkgs/fop/Linux/lib/commons-io-1.3.1.jar:/work/ui/pkgs/fop/Linux/lib/batik-all-1.7.jar:/work/ui/pkgs/fop/Linux/lib/avalon-framework-4.2.0.jar:/work/ui/pkgs/fop/Linux/build/fop.jar:/work/ui/pkgs/fop/Linux/build/fop-sandbox.jar:/work/ui/pkgs/fop/Linux/build/fop-hyph.jar:
> org.apache.fop.cli.Main -xml MessageVolumeByCount-report.xml -xsl
> report-pdf.xsl -pdf MessageVolumeByCount-report.pdf
Image IO library is missing from your classpath. The name of the JAR you
need is jai_imageio.jar.
<snip/>
> I also had the same error from FOP when trying to load a simple JPG
> version of the same file, saved from GIMP.
>
> I am a little frustrated because there is no documentation on the Apache
> FOP site for helping with troubleshooting this (I did look at
> http://xmlgraphics.apache.org/fop/0.94/graphics.html and downloaded JAI
> 1.1.3, and it appears in the classpath (see above)). I do understand
> that image formats are crazily complex, but there's no simple how-to
> document (that I could find) to get basic image rendering set up in a
> foolproof manner...
The JAI that you downloaded is an older library and you need Image IO
version.
Regards,
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org