GNOME Bugzilla – Bug 339213
Unable to import rotated photos
Last modified: 2006-06-05 18:18:41 UTC
Please describe the problem: When I attempt to import photos taken with my digital camera, any pictures taken while the camera was in a vertical orientation are not imported. When I check the directory F-Spot uses to store the imported photos, all the files have been copied, but F-Spot does not display the rotated images. Steps to reproduce: 1. Take pictures with digital camera, including rotated images. 2. Connect camera to computer with USB cable. 3. Import photos with F-Spot Actual results: Only the photos which are not rotated are actually imported; the rotated images are copied but not managed by F-Spot. Expected results: All photos are imported. Does this happen every time? Yes. Other information: The output from running F-Spot and importing the files from a directory: $ f-spot Starting new FSpot server item ImportCommand+SourceItem Scanning /home/john/Desktop/19 loading exif data loading exif data loading exif data loading exif data loading exif data Error importing /home/john/Desktop/19/00002.jpg System.ArgumentNullException: Argument cannot be null. Parameter name: src in <0x00000> <unknown method> in (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int) in <0x00013> System.Runtime.InteropServices.Marshal:Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) in <0x00050> Exif.ExifEntry:get_Data () in <0x00054> FSpot.JpegFile:get_Description () in <0x0006d> PhotoStore:Create (System.String newPath, System.String origPath, Gdk.Pixbuf thumbnail) in <0x000cd> FileImportBackend:Step (.Photo photo, Gdk.Pixbuf thumbnail, System.Int32 count) Could not import file loading exif data loading exif data loading exif data loading exif data cleanup context loading exif data Error importing /home/john/Desktop/19/00004.jpg System.ArgumentNullException: Argument cannot be null. Parameter name: src in <0x00000> <unknown method> in (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int) in <0x00013> System.Runtime.InteropServices.Marshal:Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) in <0x00050> Exif.ExifEntry:get_Data () in <0x00054> FSpot.JpegFile:get_Description () in <0x0006d> PhotoStore:Create (System.String newPath, System.String origPath, Gdk.Pixbuf thumbnail) in <0x000cd> FileImportBackend:Step (.Photo photo, Gdk.Pixbuf thumbnail, System.Int32 count) Could not import file loading exif data loading exif data loading exif data loading exif data Stopping loading exif data old = "" new = "" heading = "ASCII" loading exif data value = 2006:04:19 16:12:25 len = 19 <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag>. <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#li> "Events". <> <http://purl.org/dc/elements/1.1/subject> <_>. loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:12 len = 19 loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:12 len = 19 loading exif data Saved 7633 bytes loading exif data old = "" new = "" heading = "ASCII" loading exif data value = 2006:04:19 16:14:40 len = 19 <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag>. <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#li> "Events". <> <http://purl.org/dc/elements/1.1/subject> <_>. loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:13 len = 19 loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:13 len = 19 loading exif data Saved 7554 bytes loading exif data old = "" new = "" heading = "ASCII" loading exif data value = 2006:04:19 16:16:46 len = 19 <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag>. <_> <http://www.w3.org/1999/02/22-rdf-syntax-ns#li> "Events". <> <http://purl.org/dc/elements/1.1/subject> <_>. loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:13 len = 19 loading exif data value = f-spot version 0.1.11 len = 21 value = 2006:04:20 14:18:13 len = 19 loading exif data Saved 7233 bytes Reloading
it looks like something is going very wrong with libexif. What version of libexif do you have installed? What is the full name of the shared library it provides and what are the contents of the /usr/lib/f-spot/f-spot.exe.config file?
Installed libexif is version 0.6.12-2. The provided library is at /usr/lib/libexif.so.12.0.0 The contents of /usr/lib/f-spot/f-spot.exe.config are as follows: <configuration> <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/> <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/> <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/> <dllmap dll="libgdk-2.0-0.dll" target="libgdk-x11-2.0.so.0"/> <dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so.0"/> <dllmap dll="libgnomevfs-2-0.dll" target="libgnomevfs-2.so.0"/> <dllmap dll="libgnomeui-2-0.dll" target="libgnomeui-2.so.0"/> <dllmap dll="libfspot" target="/usr/lib/f-spot/libfspot.so.0"/> <dllmap dll="libfspoteog" target="/usr/lib/f-spot/libfspoteog.so.0"/> <dllmap dll="libfspotjpeg" target="/usr/lib/f-spot/libfspotjpg.so.0"/> <dllmap dll="liblcms-1.0.0.dll" target="liblcms.so.1"/> <dllmap dll="libexif.dll" target="libexif.so.12"/> </configuration> libexif.so.12 is a symlink to libexif.so.12.0.0
I could attach a couple shots from my camera, one that imports and one that doesn't, if it would help.
Created attachment 64882 [details] Photo that imports properly A sample photo with the camera oriented normally that imports properly in F-Spot.
Created attachment 64883 [details] Photo that fails to import A photo taken with the camera rotated 90° which F-Spot fails to import.
I could import both pictures to my F-Spot (latest CVS version). The last one (2) photo is displayed in F-Spot with the bottle laying down. The first picture is displayed in F-Spot with the bottle standing up.
Seems to be a duplicate of bug #334481. Should probably merge the two...
(In reply to comment #1) > What version of libexif do you have installed? Ubuntu Dapper libexif12 (0.6.12-2) > What is the full name of the shared library it provides /usr/lib/libexif.so.12 /usr/lib/libexif.so.12.0.0 > what are the contents of the /usr/lib/f-spot/f-spot.exe.config file? <configuration> <dllmap dll="libglib-2.0-0.dll" target="libglib-2.0.so.0"/> <dllmap dll="libgobject-2.0-0.dll" target="libgobject-2.0.so.0"/> <dllmap dll="libgtk-win32-2.0-0.dll" target="libgtk-x11-2.0.so.0"/> <dllmap dll="libgdk-2.0-0.dll" target="libgdk-x11-2.0.so.0"/> <dllmap dll="libgdk_pixbuf-2.0-0.dll" target="libgdk_pixbuf-2.0.so.0"/> <dllmap dll="libgnomevfs-2-0.dll" target="libgnomevfs-2.so.0"/> <dllmap dll="libgnomeui-2-0.dll" target="libgnomeui-2.so.0"/> <dllmap dll="libfspot" target="/usr/lib/f-spot/libfspot.so.0"/> <dllmap dll="libfspoteog" target="/usr/lib/f-spot/libfspoteog.so.0"/> <dllmap dll="libfspotjpeg" target="/usr/lib/f-spot/libfspotjpg.so.0"/> <dllmap dll="liblcms-1.0.0.dll" target="liblcms.so.1"/> <dllmap dll="libexif.dll" target="libexif.so.12"/> </configuration>
*** This bug has been marked as a duplicate of 334481 ***
Should be fixed in CVS for real this time, please try it out and verify.
That did the trick. F-Spot successfully imported the rotated images. Strangely, although the preview during import showed the images in the correct orientation, they appear sideways when I browse my collection.