cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joakim verona <>
Subject Re: instability of cocoon image reader?
Date Sun, 07 Dec 2003 00:50:29 GMT

Thanks for your tip. It seems it works a little better with reducing the 
pool, but the problem still remains.

Heres the modified imagereader component definition:

 <map:reader name="image"

It still craches, but manages to generate more thumbnails.

Here is the exception in the cocoon handled-errors.log:

com.sun.image.codec.jpeg.TruncatedFileException: Premature end of input file

I agree that cached thumbnails would be better in many ways,
but for various reasons it wouldnt be very convenient in my case.


Vadim Gritsenko wrote:

> Geoff Howard wrote:
>> Joakim Verona wrote:
>>> Hello list,
>>> I'm writing a simple photo browser with the cocoon image reader and 
>>> image directory generator.
>>> It seems the image reader is unstable when generating thumbnails.
>>> Random images get broken, that is, the image reader doesnt generate 
>>> the thumbnails properly.
>>> I guess the problem is that a lot of thumbnails are requested at the 
>>> same time from the server, since the thumbnail table is generated 
>>> first, and the thumbnails img tags request from the server all at once.
>>> Is there any way around this?
> Reader is recyclable. I'd recommend hard-limiting the pool of image 
> readers to the number low enough so server can handle this amount of 
> request, and even two or three less then that.
> (but personally speaking, I'd never do thumbnail generation on the 
> fly. especially given this low prices on 6.3mpixel cameras. offline 
> generation is the way to go)
> Vadim
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message