Hi FOP-specialists!

I (with help from Jeremias Maerki) found a working solution for the
"animated gif" 
problem! Here is what I created through diff (I don't have any diff
knowledge! Hope
it is right!):

<diff>
60c60,61
<             if (this.imageStatus.intValue() !=
ImageConsumer.STATICIMAGEDONE)
---
>             if (this.imageStatus.intValue() !=
ImageConsumer.STATICIMAGEDONE &&
>                 this.imageStatus.intValue() !=
ImageConsumer.SINGLEFRAMEDONE)
99c100,101
<             if (this.imageStatus.intValue() ==
ImageConsumer.STATICIMAGEDONE)
---
>             if (this.imageStatus.intValue() ==
ImageConsumer.STATICIMAGEDONE ||
>                 this.imageStatus.intValue() ==
ImageConsumer.SINGLEFRAMEDONE)
</diff>

Hope that anybody could put that in cvs and that it helps!

If you use animated gifs with these changes, the first image of that gif is
rendered to the pdf.


Greetings
        Christian Beer

-----Ursprüngliche Nachricht-----
Von: Beer, Christian [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 20. November 2001 15:05
An: Fop-liste (E-Mail)
Betreff: FOP hangs when using animated gifs...


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]

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

Reply via email to