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 143312 - gthumb's "Import photos" doesn't support usb-storage cameras
gthumb's "Import photos" doesn't support usb-storage cameras
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.6.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
: 147755 316990 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-27 21:56 UTC by Bastien Nocera
Modified: 2006-10-20 16:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to support importing photos from a given directory (87.15 KB, patch)
2004-09-19 16:25 UTC, Marco Ziech
none Details | Review
Updated german translation for attachment #31693 (94.82 KB, text/plain)
2004-09-19 16:27 UTC, Marco Ziech
  Details
The above patch modified to apply to current CVS (86.22 KB, patch)
2005-01-13 23:09 UTC, Marco Ziech
none Details | Review

Description Bastien Nocera 2004-05-27 21:56:31 UTC
See summary

HAL might be able to help in automatically detecting:
1) The camera used (the model, make, etc.)
2) The type of camera used (proprietary protocol via gphoto, or usb mass storage)
Comment 1 Isak Savo 2004-07-10 17:07:25 UTC
In the meantime, an ugly solution would be to check fstab for somthing
resembling a camera. (/mnt/camera, /mnt/canon, /mnt/minolta etc.) 

I think most vendors follow some standard for their cameras regarding
location/naming of the images. GThumb could then just mount it, copy the images,
eventually delete them and then umount it.

GThumb could contain a list of cameras with paths of images/videofiles and let
the user select one in a list. If the camera isn't available, then the user
could add the correct path and names of the files and mail the spec. to the
maintainer of GThumb. Perhaps a button "Share this model with others" that sends
the mail :-)

This is not a beautiful solution, it's not even nice, but may be sufficient
until HAL gets wider adoption...
Comment 2 Kehan Harman 2004-08-22 02:02:50 UTC
I think this is certainly something worth implementing - I really love gThumb,
but have trouble getting other members of the household to use it, and this is
one of the features they would like.
Comment 3 Marco Ziech 2004-09-19 16:25:21 UTC
Created attachment 31693 [details] [review]
Patch to support importing photos from a given directory

Here is a patch adding the needed functionality to the "Import Photos" dialog.

You can automatically open this dialog on program startup by specifying the
--import-path=<path> option. Thus, you can automatically import photos from
usb-storage cameras using gnome-volume-manager by specifying "gthumb
--import-path="%m"".

The whole support for importing photos from the filesystem *could* be GnomeVFS
compliant. However, I did not test it with special URIs. 

I might have broken libgphoto support. I cannot test this because I do not own
a digital camera which can be accessed with libgphoto.

This feature has been tested with the "Sanyo (Xacti) VPC-J1EX" camera.
Comment 4 Marco Ziech 2004-09-19 16:27:57 UTC
Created attachment 31694 [details]
Updated german translation for attachment #31693 [details]
Comment 5 Jérôme Rousselot 2005-01-04 21:13:39 UTC
I am running gthumb 2.6.1 and it seems this patch has not yet been applied to
it. Is it in cvs ? if not, why ?

I believe this would be useful to a lot of people.
Comment 6 James Graham 2005-01-11 23:51:24 UTC
withe the proliferation of USB mass storage cameras it seems that a direcctory
import would make sence for gthumb and gnome users in general (digikam can do
this?).  Any chance of getting this patched updated and applied to cvs?

Comment 7 Marco Ziech 2005-01-13 23:09:49 UTC
Created attachment 35985 [details] [review]
The above patch modified to apply to current CVS

Here is another patch which applies to the current CVS. I made some quick tests
but I did not do in-depth testing this time.

Everytime you want to import photos, a Window pops up telling you that you
camera is an unknown model. This is a known issue with this patch I was too
lazy to track down.
Comment 8 Thierry Moisan 2005-02-27 14:11:51 UTC
*** Bug 147755 has been marked as a duplicate of this bug. ***
Comment 9 Sven Salzwedel 2005-04-11 09:18:27 UTC
Hi,

probably all usb storage cameras use the directory DCIM/dcim as root and then
some other directory as <model> or (in my case) 100camera for the photos. The
path to my photos then looks like "/some/mountpoint/dcim/100camera/". I've
experienced that with my Traveler cam and with my uncle's Olympus cam. Maybe
someone can affirm that with other models? With this knowledge it would be
possible to "autodetect" such cameras for import.
Comment 10 Stephen Irons 2006-05-21 23:37:08 UTC
DCF (Design rule for Camera Filesystem) specifies the file system format. It is available at http://www.exif.org/dcf.PDF.

It specifies 
   * the DCF character set for use in file- and directory names: digits, capital letter and underscore

   * the DCF root directory: <fsroot>/DCIM

   * names for photograph directories under DCF root:
      * 8 character names
      * first three characters make a number from 100-999. 000-099 are not allowed
      * last five character can be any in the DCF character set

   * only DOS FAT read-only attribute is supported for directories

   * other directories in <fsroot> and <fsroot>/DCIM are allow but ignored.

   * names for files in DCS directories:
      * 8 character names
      * first four characters are any character in DCF character set
      * other four character are digits only and are called the DCF file number

   * 3 character DOS-style file-name extension

   * allowed file formats and corresponding extension: JPG, THM, or other


So, <fsroot>/DCIM/100camera is illegal, but <fsroot>/DCIM/100CAMERA is allowed. My HP is <fsroot>/DCIM/100HP620.
Comment 11 Frederik Elwert 2006-08-14 16:01:12 UTC
On my Ubuntu Dapper system, gnome-volume-manager contains a script called gnome-volume-manager-gthumb which is trying to find out if the camera has usb mass storage support. If it's the case, it tries to open gthumb in the image directory of that camera, otherwise it calls "gthumb --import-photos".

I'm not sure if this is a ubuntu-specific enhancement, or if it is part of gnome-volume-manager.

But this doesn't solve the real problem: the missing mass storage camera support of gThumb. I think it's import tool is very good in terms of simplicity, and I don't know why one has to install digiKam for importing images from mass storage cameras, when there is a (at least test-worthy) patch lying around since 2004(!).

I would really like to see this bug get more attention.
Comment 12 Michael Chudobiak 2006-10-19 20:24:16 UTC
*** Bug 316990 has been marked as a duplicate of this bug. ***
Comment 13 Aaron Schlaegel 2006-10-20 05:13:36 UTC
I have owned three different digital cameras, and every one of them has been a usb mass storage device. Everyone I know has a usb mass storage digital camera. I get the distinct feeling that most consumer level cameras are usb mass storage devices, so this bug likely affects almost all of the target audience (but who am I to decide who is the target audience).
Comment 14 Aaron Schlaegel 2006-10-20 05:34:18 UTC
(In reply to comment #10)
> So, <fsroot>/DCIM/100camera is illegal, but <fsroot>/DCIM/100CAMERA is allowed.

Though the spec says not to use lower-case letters for naming image files and directories, it explicitly states that directories and files with lower-case names should be treated as if their names were in all upper-case letters.

Design rule for Camera File system, Version 1.0, Page 3:
> If an existing directory or file name uses lower-case letters, they shall
> be treated as all upper-case letters. ... If lower-case letters from 61.H
> through 7A.H are used, they shall be treated as upper-case letters from
> 41.H to 5A.H.

So, I think letter case should definitely be ignored.
Comment 15 Hubert Figuiere (:hub) 2006-10-20 14:38:16 UTC
just use libgphoto2 2.2.x or later. the directory driver support detecting mounted file systems.
Comment 16 Michael Chudobiak 2006-10-20 15:00:54 UTC
According to https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1581262&group_id=8874,  version 2.2.x of libgphoto includes a "directory" driver for the purpose of supporting mass storage cameras.

gthumb uses libgphoto for its import functions.

Can someone install libgphoto 2.2.x and report back? Does it auto-detect mass storage cameras, or allow you to specify one manually in the gthumb import dialog?

- Mike
Comment 17 Michael Chudobiak 2006-10-20 16:30:35 UTC
OK, I tested gthumb CVS + libgphoto2 2.2.1, and it does auto-detect mass storage devices as promised.

It did auto-detect and import from my flash card in a card reader, which FC5 had automounted as /media/disk/DCIM/...

I'm closing this bug as FIXED. Install libgphoto > 2.2.0 to obtain usb-mass-storage functionality.

- Mike