Re: FOP hangs when using animated gifs...
I have put this in cvs. Thats not quite how you should submit a diff but it was simple enough that it doesn't matter. On 2001.11.21 08:50 "Beer, Christian" wrote: > 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!): > > > 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) > > > 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: FOP hangs when using animated gifs...
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!): 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) 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: 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(); 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-41Tel. : +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]
Re: FOP hangs when using animated gifs...
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: > > 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(); > > > > 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-41Tel. : +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]
FOP hangs when using animated gifs...
Hi FOPers. I found the place in the source (class GifImage) where the hang happens: 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(); 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-41Tel. : +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]
FOP hangs when using animated gifs
Hi Folks! When I use an animated gif in fo:external-graphic, FOP hangs without any error!! Is there a way to find out if a gif is animated?? Thanks Christian DIRON Wirtschaftsinformatik GmbH & Co. KG Christian Beer ([EMAIL PROTECTED]) Daimlerweg 39-41Tel. : +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]