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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]