[daisy] Images with color model CMYK

Andreas Deininger adeininger at googlemail.com
Mon Jul 10 05:16:07 CDT 2006


Hi,

I just created a new document of type 'Image' and uploaded a jpeg-file
(3.0 MB) of color model CMYK. If I navigate to the document and click
on "download", I get the error message:

The image "http://mydomain/mysite/11500/version/2/part/3/data/cmykimage.jpg?branch=main&language=de"
cannot be displayed, because it contains errors." (However, if I right
click and save the attachment to my hard disk, I can view it without
problems).
After converting the image to color mode RGB and replacing the CMYK
version with the RGB version, the problem is gone.

The repository log tells:

[ERROR  ] <2006-07-10 11:18:57,124>
(daisy.repository.repository-manager): Error executing pre-save-hook
image-pre-save-hook on document  {document ID 11500, branch ID 1,
language ID 2}
com.sun.image.codec.jpeg.ImageFormatException: Can't construct a
BufferedImage for given COLOR_ID
	at sun.awt.image.codec.JPEGImageDecoderImpl.getDecodedColorModel(JPEGImageDecoderImpl.java:312)
	at sun.awt.image.codec.JPEGImageDecoderImpl.readJPEGStream(Native Method)
	at sun.awt.image.codec.JPEGImageDecoderImpl.decodeAsBufferedImage(JPEGImageDecoderImpl.java:210)
	at org.outerj.daisy.presavehook.image.ImagePreSaveHook.process(ImagePreSaveHook.java:176)
	at org.outerj.daisy.repository.serverimpl.LocalDocumentStrategy.store(LocalDocumentStrategy.java:399)
	at org.outerj.daisy.repository.commonimpl.DocumentImpl.save(DocumentImpl.java:383)
	at org.outerj.daisy.httpconnector.handlers.DocumentHandler.handleRequest(DocumentHandler.java:98)
	at org.outerj.daisy.httpconnector.HttpConnectorImpl$PathHandler.handle(HttpConnectorImpl.java:237)
	at org.outerj.daisy.httpconnector.HttpConnectorImpl$DaisyHandler.handle(HttpConnectorImpl.java:196)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
	at org.mortbay.http.HttpServer.service(HttpServer.java:909)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


Is that a known issue or is that related to my installation/settings?
(I have JAI 1.1.3 installed with my JDK).

Regards

Andreas


More information about the daisy mailing list