[daisy] PNGs and PDFs

Jill Giboney giboneyj at gmail.com
Tue Jun 5 12:33:02 CDT 2007


Thank you both for solving this problem for us. It turned out I had been
downloading the JDK version of JAI, but installing it into the JRE.
Installing the correct version fixed the problem!

Thanks again,

Jill Giboney

-----Original Message-----
From: daisy-bounces at lists.cocoondev.org
[mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Bruno Dumon
Sent: Monday, June 04, 2007 1:01 PM
To: Daisy: open source CMS - general mailinglist
Subject: Re: [daisy] PNGs and PDFs

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/su
n/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

_______________________________________________
daisy community mailing list
Professional Daisy support:
http://outerthought.org/site/services/daisy/daisysupport.html
mail to: daisy at lists.cocoondev.org
list information: http://lists.cocoondev.org/mailman/listinfo/daisy



More information about the daisy mailing list