GNOME Bugzilla – Bug 492111
Doesn't rotate pictures while importing
Last modified: 2007-11-01 11:13:51 UTC
Please describe the problem: When using Gthumb to import pictures, it doesn't physically rotate them as it should when the corresponding option is checked. Steps to reproduce: 1. Take a picture with vertical orientation 2. Import the picture using gthumb --import-photos 3. Check the "Rotate images physically" option Actual results: The picture is not rotated physically Expected results: The picture to be rotated physically Does this happen every time? Yes Other information: Here is a patch: --- gthumb/src/dlg-photo-importer.c (revision 2034) +++ gthumb/src/dlg-photo-importer.c (working copy) @@ -1468,7 +1468,7 @@ fd = file_data_new (uri, NULL); file_data_update (fd); - transform = read_orientation_field (fd->path); + transform = read_orientation_field (get_file_path_from_uri (fd->path)); if (image_is_jpeg (uri)) success = apply_transformation_jpeg (fd, transform, JPEG_MCU_ACTION_DONT_TRIM, NULL); else
Created attachment 98248 [details] [review] Patch to correct that
Thank you for the patch! A slightly-expanded version has been committed to svn: http://svn.gnome.org/viewvc/gthumb?view=revision&revision=2035 and should appear in 2.10.8. - Mike
*** Bug 492258 has been marked as a duplicate of this bug. ***