Permalink
Browse files

Fix bug on Camera Model

  • Loading branch information...
longkerdandy committed Jul 18, 2011
1 parent 4a1dfc8 commit 272fdaf4dd56b8d189f8c3878b8f3b8b0d9b7695
@@ -113,7 +113,7 @@ public void run() {
if (metadata instanceof JpegImageMetadata) {
JpegImageMetadata jpegMetadata = (JpegImageMetadata) metadata;
imageFile.setCameraMaker(this.getJPEGMetadataStringValue(jpegMetadata, TiffConstants.EXIF_TAG_MAKE));
- imageFile.setCameraMaker(this.getJPEGMetadataStringValue(jpegMetadata, TiffConstants.EXIF_TAG_MODEL));
+ imageFile.setCameraModel(this.getJPEGMetadataStringValue(jpegMetadata, TiffConstants.EXIF_TAG_MODEL));
imageFile.setISO(this.getJPEGMetadataIntValue(jpegMetadata, TiffConstants.EXIF_TAG_ISO));
imageFile.setExposureTime(this.parseRationalNumber(this.getJPEGMetadataValue(jpegMetadata, TiffConstants.EXIF_TAG_EXPOSURE_TIME)));
imageFile.setFlash(this.getJPEGMetadataIntValue(jpegMetadata, TiffConstants.EXIF_TAG_FLASH));
@@ -124,7 +124,7 @@ public void run() {
} else if (metadata instanceof TiffImageMetadata) {
TiffImageMetadata tiffMetadata = (TiffImageMetadata) metadata;
imageFile.setCameraMaker(this.getTiffMetadataStringValue(tiffMetadata, TiffConstants.EXIF_TAG_MAKE));
- imageFile.setCameraMaker(this.getTiffMetadataStringValue(tiffMetadata, TiffConstants.EXIF_TAG_MODEL));
+ imageFile.setCameraModel(this.getTiffMetadataStringValue(tiffMetadata, TiffConstants.EXIF_TAG_MODEL));
imageFile.setISO(this.getTiffMetadataIntValue(tiffMetadata, TiffConstants.EXIF_TAG_ISO));
imageFile.setExposureTime(this.parseRationalNumber(this.getTiffMetadataValue(tiffMetadata, TiffConstants.EXIF_TAG_EXPOSURE_TIME)));
imageFile.setFlash(this.getTiffMetadataIntValue(tiffMetadata, TiffConstants.EXIF_TAG_FLASH));

0 comments on commit 272fdaf

Please sign in to comment.