[daisy] PNGs and PDFs
Bruno Dumon
bruno at outerthought.org
Mon Jun 4 15:01:25 CDT 2007
On Mon, 2007-06-04 at 21:40 +0200, Andreas Deininger wrote:
> 2007/6/4, Jill Giboney <giboneyj at gmail.com>:
> > Hi Andreas -
> >
> > Are you talking about JAI on a Linux system perhaps?
>
> Yes, the demosite runs on Linux.
>
> > I have installed JAI
> > every time I have installed a Daisy system, but I have always installed it
> > on Windows systems. I have tried to generate PDFs with PNGs with different
> > Daisy versions on various servers, but always get this message:
> >
> > HTTP ERROR: 500
> > com/sun/media/jai/codec/FileCacheSeekableStream
>
> This class is part of JAI:
> http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/com/sun/media/jai/codec/FileCacheSeekableStream.html
>
> so to me this very much looks like a problem related to the
> (improper!?) installation of JAI.
>
> This class comes with jai_codec.jar:
> $ jar tf /usr/local/share/java/jre/lib/ext/jai_codec.jar | grep eCacheSeek
> com/sun/media/jai/codec/FileCacheSeekableStream.class
>
> Do you have that file inside your java installation?
>
> Did you install the bundles of the form *-jdk* for installation into a
> JDK (or bundles of the form *-jre* for installation into a JRE,
> whatever are you using?).
> Just a guess.
Related to this, you might have multiple Java installations on your
system. Make sure JAI is installed in the one used by Daisy, i.e. the
one the JAVA_HOME environment variable points to.
PS: even when JAI is working, some PNG files will not work, IIRC if they
are using progressive loading features and such. This can be solved by
re-saving the PNGs in an image editor without these special features
enabled.
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list