After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 339213 - Unable to import rotated photos
Unable to import rotated photos
Status: RESOLVED DUPLICATE of bug 334481
Product: f-spot
Classification: Other
Component: General
0.1.11
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-20 18:38 UTC by John Stilian
Modified: 2006-06-05 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Photo that imports properly (33.73 KB, image/jpeg)
2006-05-05 19:49 UTC, John Stilian
Details
Photo that fails to import (34.03 KB, image/jpeg)
2006-05-05 19:50 UTC, John Stilian
Details

Description John Stilian 2006-04-20 18:38:34 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
Comment 1 Larry Ewing 2006-04-20 19:35:59 UTC
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?
Comment 2 John Stilian 2006-04-20 20:07:27 UTC
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
Comment 3 John Stilian 2006-04-22 18:02:52 UTC
I could attach a couple shots from my camera, one that imports and one that doesn't, if it would help.
Comment 4 John Stilian 2006-05-05 19:49:13 UTC
Created attachment 64882 [details]
Photo that imports properly

A sample photo with the camera oriented normally that imports properly in F-Spot.
Comment 5 John Stilian 2006-05-05 19:50:55 UTC
Created attachment 64883 [details]
Photo that fails to import

A photo taken with the camera rotated 90° which F-Spot fails to import.
Comment 6 Bengt Thuree 2006-05-06 13:23:45 UTC
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.
Comment 7 Bengt Thuree 2006-05-18 08:22:57 UTC
Seems to be a duplicate of bug #334481.
Should probably merge the two...
Comment 8 Brice DEKANY 2006-05-18 09:05:29 UTC
(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>
Comment 9 Danielle Madeley 2006-06-05 03:54:02 UTC

*** This bug has been marked as a duplicate of 334481 ***
Comment 10 Larry Ewing 2006-06-05 15:56:18 UTC
Should be fixed in CVS for real this time, please try it out and verify.
Comment 11 John Stilian 2006-06-05 18:18:41 UTC
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.