Menu

#940 get-thumbnail on Canon EOS 60D doesnt work for old images

open
None
5
2015-02-24
2013-02-19
Matt H
No

Hey guys,

I ran into a problem with get-thumbnail on my Canon EOS 60D

get-thumbnail is only working for images taken after i start a gphoto session.

this is running on ubuntu 12.10 (quantal) with 2.4.14 installed

Thanks,
Matt

simplest command that shows the error.

#gphoto2 --get-all-thumbnails
Downloading 'IMG_7810.JPG' from folder '/store_00020001/DCIM/100CANON'...
Downloading 'IMG_7810.JPG' from folder '/store_00020001/DCIM/100CANON'...
*** Error (-6: 'Unsupported operation') ***

debug output of error (full dump is attached)

0.153897 ptp2(2): file_list_func(/store_00020001/DCIM/100CANON)
0.153909 gphoto2-filesystem(2): Added 'IMG_7813.JPG'
0.153916 gphoto2-filesystem(2): Internal append IMG_7813.JPG to folder 100CANON
0.153924 filesys(2): Listed 'IMG_7813.JPG'
0.153995 gphoto2-camera(2): Getting file 'IMG_7813.JPG' in folder '/store_00020001/DCIM/100CANON'...
0.154005 libgphoto2/gphoto2-filesys.c(2): Getting file 'IMG_7813.JPG' from folder '/store_00020001/DCIM/100CANON' (type 0)...
0.154018 gphoto2-filesystem(2): Lookup folder /store_00020001/DCIM/100CANON file IMG_7813.JPG
0.154026 gphoto2-filesystem(2): Lookup folder '/store_00020001/DCIM/100CANON'...
0.154045 context(2): Downloading 'IMG_7813.JPG' from folder '/store_00020001/DCIM/100CANON'...
0.154197 PTP2/ptp2/library.c(2): Getting file.
0.154222 libgphoto2/gphoto2-filesys.c(2): Getting previews is not supported. Trying EXIF data...
0.154230 libgphoto2/gphoto2-filesys.c(2): Getting file 'IMG_7813.JPG' from folder '/store_00020001/DCIM/100CANON' (type 4)...
0.154241 gphoto2-filesystem(2): Lookup folder /store_00020001/DCIM/100CANON file IMG_7813.JPG
0.154248 gphoto2-filesystem(2): Lookup folder '/store_00020001/DCIM/100CANON'...
0.154258 context(2): Downloading 'IMG_7813.JPG' from folder '/store_00020001/DCIM/100CANON'...
0.154351 PTP2/ptp2/library.c(2): Getting file.
0.154369 gphoto2-port(2): Writing 24=0x18 bytes to port...
0.154379 gphoto2-port(3): Hexdump of 24 = 0x18 bytes follows:

this states that previews are not supported but --abilities show that they should be. (and they are for jpgs after you do a capture)


gphoto2 2.4.14 installed from ubuntu

#gphoto2 --version
gphoto2 2.4.14

Copyright (c) 2000-2012 Lutz Mueller and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.4.14         gcc, popt(m), exif, cdk, no aa, jpeg, readline
libgphoto2      2.4.14         gcc, ltdl, EXIF
libgphoto2_port 0.8.0          gcc, ltdl, USB (libusb0), serial without locking

shell session that also causes problem, it shows that gphoto is only having problems with images that were on the camera before the session was started.

#gphoto2 --shell

> cd /store_00020001/DCIM/100CANON/
Remote directory now '/store_00020001/DCIM/100CANON/'.

> get IMG_7810.JPG
Saving file as IMG_7810.JPG

> get-thumbnail IMG_7810.JPG
Downloading 'IMG_7810.JPG' from folder '/store_00020001/DCIM/100CANON'...
Downloading 'IMG_7810.JPG' from folder '/store_00020001/DCIM/100CANON'...
*** Error (-6: 'Unsupported operation') ***

> capture-image
New file is in location /store_00020001/DCIM/100CANON/IMG_7811.CR2 on the camera
New file is in location /store_00020001/DCIM/100CANON/IMG_7811.JPG on the camera

> show-info IMG_7810.JPG
Information on file 'IMG_7810.JPG' (folder '/store_00020001/DCIM/100CANON'):
File:
  Mime type:   'image/jpeg'
  Size:        5504734 byte(s)
  Permissions: read/delete
  Time:        Tue Feb 19 06:04:12 2013
Thumbnail:
  Mime type:   'application/x-unknown'
Audio data:
  None available.

> show-info IMG_7811.JPG
Information on file 'IMG_7811.JPG' (folder '/store_00020001/DCIM/100CANON'):
File:
  Mime type:   'image/jpeg'
  Size:        5456885 byte(s)
  Width:       5184 pixel(s)
  Height:      3456 pixel(s)
  Permissions: read/delete
  Time:        Tue Feb 19 14:15:40 2013
Thumbnail:
  Mime type:   'image/jpeg'
  Size:        9168 byte(s)
  Width:       160 pixel(s)
  Height:      120 pixel(s)
Audio data:
  None available.

> get-thumbnail IMG_7811.JPG
Downloading 'IMG_7811.JPG' from folder '/store_00020001/DCIM/100CANON'...
Saving file as thumb_IMG_7811.jpg
1 Attachments

Discussion

  • Marcus Meissner

    Marcus Meissner - 2013-05-12
    • assigned_to: Marcus Meissner
     
  • Marcus Meissner

    Marcus Meissner - 2013-05-12

    abilities preview means --capture-preview

    but well, thumbnails should work and usually do ... hard to say what went wrong here, perhaps the dual RAW+JPEG capture? hmm

     

Log in to post a comment.