xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r647535 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java
Date Sun, 13 Apr 2008 07:32:29 GMT
Author: jeremias
Date: Sun Apr 13 00:32:28 2008
New Revision: 647535

URL: http://svn.apache.org/viewvc?rev=647535&view=rev
Log:
Fixed a problem with codecs that to late pixel population (like the TIFF codec from JAI Image
I/O Tools).

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java?rev=647535&r1=647534&r2=647535&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageLoaderImageIO.java
Sun Apr 13 00:32:28 2008
@@ -106,7 +106,11 @@
                         if (ImageFlavor.BUFFERED_IMAGE.equals(this.targetFlavor)) {
                             imageData = reader.read(pageIndex, param);
                         } else {
-                            imageData = reader.readAsRenderedImage(pageIndex, param);
+                            imageData = reader.read(pageIndex, param);
+                            //imageData = reader.readAsRenderedImage(pageIndex, param);
+                            //TODO Reenable the above when proper listeners are implemented
+                            //to react to late pixel population (so the stream can be closed
+                            //properly).
                         }
                         if (iiometa == null) {
                             iiometa = reader.getImageMetadata(pageIndex);



---------------------------------------------------------------------
Apache XML Graphics Project URL: http://xmlgraphics.apache.org/
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message