[Pkg-phototools-devel] Bug#523512: RAW .NEF images are recognized as application/x-unknown
Guillaume Gimenez
ggimenez at free.fr
Sat Apr 11 10:06:21 UTC 2009
Cyril Brulebois a écrit :
> Guillaume Gimenez <ggimenez at free.fr> (10/04/2009):
>> I come back from gthumb sources where I found that
>> gp_camera_file_get_info() returns "application/x-unknown" for NEF
>> files.
>>
>> BTW, NEF files are always discarded.
>>
>> see dlg-photo-importer.c and libgphoto2/gphoto2-camera.c
>
> Well. Maybe it's just too late, but…
>
> In gthumb's [src/dlg-photo-importer.c] get_file_list(), it looks to me
> like the call to gp_camera_file_get_info() succeed, you wouldn't be
> talking about “application/x-unknown” otherwise. Then valid_mime_type()
> is called. Looking at this one, it first tries to check the claimed
> mime type, then only falls back to picking the extension and trying to
> map it to a known one. It looks to me like gthumb ought to consider a
> NEF extension as valid, no?
yes it is.
>
> Now, it would be nice to learn a bit about your camera, to see what
> gphoto2 tells us, once debug is enabled (--debug/--debug-logfile, see
> manpage). Also, there's a 2.4.5-1 around in unstable, in case you want
> to check the latest bugfix release.
$ apt-cache policy libgphoto2-2
[...]
*** 2.4.5-1 0
500 http://ftp.fr.debian.org unstable/main Packages
[...]
$ env LANG=C gphoto2 --port=usb: --camera="Nikon DSC D700 (PTP mode)"
--debug --debug-logfile=gp_log_file -L
There is no file in folder '/'.
There is no file in folder '/store_00010001'.
There is no file in folder '/store_00010001/DCIM'.
There are 2 files in folder '/store_00010001/DCIM/104ND700'.
#1 GGZ_2201.JPG rd 5907 KB 4256x2832 image/jpeg
#2 GGZ_2201.NEF rd 12864 KB application/x-unknown
Kindly,
Guillaume
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gp_log_file.gz
Type: application/x-gzip
Size: 40455 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20090411/c03df897/attachment-0001.bin>
More information about the Pkg-phototools-devel
mailing list