From c67e1503f2bebaaa05410a07339b9d49e66f7154 Mon Sep 17 00:00:00 2001 From: eschaeffer Date: Tue, 30 May 2000 12:50:30 +0000 Subject: [PATCH] add sleeping while waiting for consumer to finish git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193392 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/image/GifJpegImage.java | 3 ++- src/org/apache/fop/image/JimiImage.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/apache/fop/image/GifJpegImage.java b/src/org/apache/fop/image/GifJpegImage.java index 604b088bd..b5dbce0dc 100644 --- a/src/org/apache/fop/image/GifJpegImage.java +++ b/src/org/apache/fop/image/GifJpegImage.java @@ -95,7 +95,7 @@ public class GifJpegImage implements FopImage { FopImageConsumer consumer = new FopImageConsumer(ip); ip.startProduction(consumer); - while (! consumer.isImageReady()) {} + while (! consumer.isImageReady()) {Thread.sleep(500);} this.m_height = consumer.getHeight(); this.m_width = consumer.getWidth(); @@ -132,6 +132,7 @@ public class GifJpegImage implements FopImage { } } } else { + // TRANSLUCENT /* this.m_isTransparent = false; for (int i = 0; i < this.m_width * this.m_height; i++) { diff --git a/src/org/apache/fop/image/JimiImage.java b/src/org/apache/fop/image/JimiImage.java index 82fe7c54b..749406ce2 100644 --- a/src/org/apache/fop/image/JimiImage.java +++ b/src/org/apache/fop/image/JimiImage.java @@ -98,7 +98,7 @@ public class JimiImage implements FopImage { FopImageConsumer consumer = new FopImageConsumer(ip); ip.startProduction(consumer); - while (! consumer.isImageReady()) {} + while (! consumer.isImageReady()) {Thread.sleep(500);} this.m_height = consumer.getHeight(); this.m_width = consumer.getWidth(); @@ -135,6 +135,7 @@ public class JimiImage implements FopImage { } } } else { + // TRANSLUCENT /* this.m_isTransparent = false; for (int i = 0; i < this.m_width * this.m_height; i++) { -- 2.39.5