xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r884276 - in /xmlgraphics/commons/trunk: src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java status.xml
Date Wed, 25 Nov 2009 21:10:21 GMT
Author: jeremias
Date: Wed Nov 25 21:10:21 2009
New Revision: 884276

URL: http://svn.apache.org/viewvc?rev=884276&view=rev
Log:
Bugfix for detecting multi-strip CCITT-encoded TIFFs.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java
    xmlgraphics/commons/trunk/status.xml

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java?rev=884276&r1=884275&r2=884276&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/PreloaderTIFF.java
Wed Nov 25 21:10:21 2009
@@ -155,7 +155,7 @@
             if (fld == null) {
                 stripCount = 1;
             } else {
-                stripCount = (int)(size.getHeightPx() / fld.getAsLong(0));
+                stripCount = (int)Math.ceil(size.getHeightPx() / (double)fld.getAsLong(0));
             }
             info.getCustomObjects().put("TIFF_STRIP_COUNT", new Integer(stripCount));
 

Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=884276&r1=884275&r2=884276&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Wed Nov 25 21:10:21 2009
@@ -40,6 +40,9 @@
   </contexts>
   <changes>
     <release version="Trunk" date="n/a">
+      <action context="Code" dev="JM" type="fix">
+        Bugfix for detecting multi-strip CCITT-encoded TIFFs.
+      </action>
       <action context="Code" dev="JM" type="add" fixes-bug="48264" due-to="Venkat Reddy">
         Enabled native encoding of CMYK images for PostScript output.
       </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message