You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2013/10/24 02:32:05 UTC
svn commit: r1535238 -
/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
Author: ggregory
Date: Thu Oct 24 00:32:04 2013
New Revision: 1535238
URL: http://svn.apache.org/r1535238
Log:
- The static field TiffEpTagConstants.EXIF_TAG_INTER_COLOR_PROFILE should be accessed directly.
- The static field TiffTagConstants.TIFF_TAG_IMAGE_LENGTH should be accessed directly.
Modified:
commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java?rev=1535238&r1=1535237&r2=1535238&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java (original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/TiffImageParser.java Thu Oct 24 00:32:04 2013
@@ -39,8 +39,8 @@ import org.apache.commons.imaging.common
import org.apache.commons.imaging.common.ImageBuilder;
import org.apache.commons.imaging.common.bytesource.ByteSource;
import org.apache.commons.imaging.formats.tiff.TiffDirectory.ImageDataElement;
-import org.apache.commons.imaging.formats.tiff.constants.AllTagConstants;
import org.apache.commons.imaging.formats.tiff.constants.TiffConstants;
+import org.apache.commons.imaging.formats.tiff.constants.TiffEpTagConstants;
import org.apache.commons.imaging.formats.tiff.constants.TiffTagConstants;
import org.apache.commons.imaging.formats.tiff.datareaders.DataReader;
import org.apache.commons.imaging.formats.tiff.photometricinterpreters.PhotometricInterpreter;
@@ -91,7 +91,7 @@ public class TiffImageParser extends Ima
.readFirstDirectory(byteSource, params, false, formatCompliance);
final TiffDirectory directory = contents.directories.get(0);
- return directory.getFieldValue(AllTagConstants.EXIF_TAG_INTER_COLOR_PROFILE,
+ return directory.getFieldValue(TiffEpTagConstants.EXIF_TAG_INTER_COLOR_PROFILE,
false);
}
@@ -588,7 +588,7 @@ public class TiffImageParser extends Ima
final int width = directory.getSingleFieldValue(
TiffTagConstants.TIFF_TAG_IMAGE_WIDTH);
final int height = directory.getSingleFieldValue(
- TiffConstants.TIFF_TAG_IMAGE_LENGTH);
+ TiffTagConstants.TIFF_TAG_IMAGE_LENGTH);
Rectangle subImage = checkForSubImage(params);
if(subImage!=null){
// Check for valid subimage specification. The following checks