commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r1401825 - in /commons/proper/imaging/trunk/src: changes/changes.xml main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
Date Wed, 24 Oct 2012 19:01:23 GMT
Author: damjan
Date: Wed Oct 24 19:01:22 2012
New Revision: 1401825

URL: http://svn.apache.org/viewvc?rev=1401825&view=rev
Log:
Tiled TIFF images do not correctly load partial tiles.

Jira issue key: IMAGING-93
Submitted by: Gary Lucas <gwlucas at sonalysts dot com>


Modified:
    commons/proper/imaging/trunk/src/changes/changes.xml
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java

Modified: commons/proper/imaging/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/changes/changes.xml?rev=1401825&r1=1401824&r2=1401825&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/changes/changes.xml (original)
+++ commons/proper/imaging/trunk/src/changes/changes.xml Wed Oct 24 19:01:22 2012
@@ -239,6 +239,9 @@ The <action> type attribute can be add,u
       <action issue="IMAGING-95" dev="damjan" type="update" due-to="amitgupt">
          Some tiff processing takes very long.
       </action>
+      <action issue="IMAGING-93" dev="damjan" type="fix" due-to="gwlucas">
+         Tiled TIFF images do not correctly load partial tiles.
+      </action>
     </release>
     
   </body>

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java?rev=1401825&r1=1401824&r2=1401825&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
Wed Oct 24 19:01:22 2012
@@ -83,13 +83,13 @@ public final class DataReaderTiled exten
             int i1 = startY + tileLength;
             if (i1 > height) {
                 // the tile is padded past bottom of image
-                i1 = height - startY;
+                i1 = height;
             }
             int j0 = startX;
             int j1 = startX + tileWidth;
             if (j1 > width) {
                 // the tile is padded to beyond the tile width
-                j1 = width - startX;
+                j1 = width;
             }
             if (photometricInterpreter instanceof PhotometricInterpreterRgb) {
                 for (int i = i0; i < i1; i++) {



Mime
View raw message