Commit fbcb664c authored by Paolo Bacchilega's avatar Paolo Bacchilega

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

parent 77d18885
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment