aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/image
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/image')
-rw-r--r--src/org/apache/fop/image/GifJpegImage.java3
-rw-r--r--src/org/apache/fop/image/JimiImage.java3
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++) {