Hi Christian

Don't know much about those image classes, but after quickly looking at
the awt javadocs and FOP source it seems to me that
FopImageConsumer.java should be adjusted, so it can handle the
ImageConsumer.SINGLEFRAMEDONE status and not only
ImageConsumer.STATICIMAGEDONE. loadImage() probably hangs because it
never receives STATICIMAGEDONE.

Anyway, I'd recommend you convert your animated gifs to normal gifs.

On Tue, 20 Nov 2001 15:05:09 +0100 Beer, Christian wrote:
> Hi FOPers.
> 
> I found the place in the source (class GifImage) where the hang happens:
> <code src="GifImage">
>       protected void loadImage() throws FopImageException {
>         int[] tmpMap = null;
>         try {
>             ImageProducer ip = (ImageProducer)this.m_href.getContent();
>             FopImageConsumer consumer = new FopImageConsumer(ip);
>             ip.startProduction(consumer);
> 
> 
>             //Load the image into memory
> // HERE IT BECOMES AN ENDLESS LOOP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>             while (!consumer.isImageReady()) {
>                 Thread.sleep(500);
>             }
> 
>             this.m_height = consumer.getHeight();
>             this.m_width = consumer.getWidth();
> </code>
> 
> 
> Why does that happen and how to fix that?!?! Very important to get that 
> fixed as soon as possible!!
> 
> Thanks
>       Christian
> 
> ____________________________________________________
> DIRON Wirtschaftsinformatik GmbH & Co. KG
> Christian Beer          ([EMAIL PROTECTED])
> Daimlerweg 39-41        Tel. : +49(251)979-200
> 48163 Muenster          Fax  : +49(251)979-2020
> Germany                 Email: [EMAIL PROTECTED]  
> 
> ____________________________________________________
> 
> BESUCHEN SIE UNS AUF DER INTERNET WORLD IN NEW YORK 
> 10. - 14.Dezember 2001
> 
> December 10th-14th 2001
> VISIT US @ INTERNET WORLD IN NEW YORK
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to