[gthumb] exiv2: change Exif.Image.Image[Width|Length] as well when saving



commit fbcb664cbb1a9b0580ec38b5bf3cd90b4abc6658
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Sep 4 20:34:18 2012 +0200

    exiv2: change Exif.Image.Image[Width|Length] as well when saving

 extensions/exiv2_tools/exiv2-utils.cpp |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/extensions/exiv2_tools/exiv2-utils.cpp b/extensions/exiv2_tools/exiv2-utils.cpp
index 0f8ce0e..4800a11 100644
--- a/extensions/exiv2_tools/exiv2-utils.cpp
+++ b/extensions/exiv2_tools/exiv2-utils.cpp
@@ -1040,12 +1040,16 @@ exiv2_write_metadata_private (Exiv2::Image::AutoPtr  image,
 
 	if (surface != NULL) {
 		width = cairo_image_surface_get_width (surface);
-		if (width > 0)
+		if (width > 0) {
 			ed["Exif.Photo.PixelXDimension"] = width;
+			ed["Exif.Image.ImageWidth"] = width;
+		}
 
 		height = cairo_image_surface_get_height (surface);
-		if (height > 0)
+		if (height > 0) {
 			ed["Exif.Photo.PixelYDimension"] = height;
+			ed["Exif.Image.ImageLength"] = height;
+		}
 
 		ed["Exif.Image.Orientation"] = 1;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]