Bug 386072 - Can't access EXIF data on some (very few!) pictures from import camera window - works fine after that
Summary: Can't access EXIF data on some (very few!) pictures from import camera window...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-IconView (show other bugs)
Version: 5.5.0
Platform: Mint (Debian based) Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-22 15:04 UTC by sverx
Modified: 2022-06-15 17:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sverx 2017-10-22 15:04:11 UTC
I'm experiencing a weird problem with digikam 5.5.0 which I just installed (and I can't run any test on the latest 5.7.0 appimage as that won't see my camera!)

The problem looks like the metadata info are missing from just a few pictures, but they're not, as I can see them after I import the pictures. All the pictures have metadata and on just a few of them, no matter how hard I try, I don't get them in import window.

I'm on Linux Mint 18.2, fwiw. Camera is a Canon EOS 60D.
Comment 1 Maik Qualmann 2017-10-22 15:28:54 UTC
Does the problem occur with RAW files? Is the camera connected via gPhoto2 (MTP, PTP)? Then this is a normal behavior. It is currently not possible to read the metadata unless the entire RAW file is temporarily downloaded. This would be very time-intensive.

Maik
Comment 2 sverx 2017-10-22 17:10:59 UTC
(In reply to Maik Qualmann from comment #1)
> Does the problem occur with RAW files? Is the camera connected via gPhoto2
> (MTP, PTP)? Then this is a normal behavior. It is currently not possible to
> read the metadata unless the entire RAW file is temporarily downloaded. This
> would be very time-intensive.
> 
> Maik

No, it's with JPG files. I don't know what's gPhoto2 - camera is connected via USB cable, digikam recognizes it (a "Canon camera" appears under import -> cameras) and let me access and preview/download the pictures.

If you need one of those problematic files to test it, like putting it on your camera and see what happens, I can provide one of them with no problems, they're just views.
Comment 3 caulier.gilles 2017-10-22 18:11:02 UTC
Look in your Camera settings if you share the device contents as PTP or UMS protocol. PTP is Gphoto2, UMS is Solid (as a compact flash card reader).

As i can see PTP mode sound like the default for Canon. This permit remote control from computer:

http://canoncanada.custhelp.com/app/answers/detail/a_id/21942/~/how-to-connect-the-camera-to-a-computer-using-a-usb-cable-%28eos-60d%29
Comment 4 sverx 2017-10-23 12:27:08 UTC
(In reply to caulier.gilles from comment #3)
> Look in your Camera settings if you share the device contents as PTP or UMS
> protocol. PTP is Gphoto2, UMS is Solid (as a compact flash card reader).
> 
> As i can see PTP mode sound like the default for Canon. This permit remote
> control from computer:
> 
> http://canoncanada.custhelp.com/app/answers/detail/a_id/21942/~/how-to-
> connect-the-camera-to-a-computer-using-a-usb-cable-%28eos-60d%29

Sure, I can check in my camera which mode it's using and if I can change that.
What setting should I use, possibly? Would that be a possible cause for my issue?
Comment 5 caulier.gilles 2017-10-23 13:37:08 UTC
UMS (USB Mass Storage) mode will solve this problem. In fact the camera memory is see by computer as an USB key.

Gilles Caulier
Comment 6 sverx 2017-10-24 11:32:38 UTC
I'm reading about gPhoto2.
If my camera is in PTP mode (I suspect that!) thus digikam is using gPhoto, is there a log file generated somewhere? There might be some useful info there, both to fix my issue and to try to submit a bug there (or solve that myself, with a bit of luck, and provide a fix)
Comment 7 caulier.gilles 2020-08-04 08:24:47 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 8 caulier.gilles 2022-01-10 10:30:21 UTC
Hi Sverx and happy new year,

Did you solve your problem following my recommendation from this file ?

Best

Gilles Caulier
Comment 9 sverx 2022-01-10 10:42:59 UTC
Happy New Year!
Well, I'm on Mint 20.1 and using Digikam 7.2.0 now and I no longer have any problem.
Also, I'm not sure how I did resolve the problem, I probably didn't find any setting I could change on the camera itself... it either never happened again or I had installed some update that solved it... hard to tell now, too much time has passed.
I think this ticket can be closed - thanks for your support and help!
Comment 10 Maik Qualmann 2022-06-15 17:12:53 UTC
Git commit eeb5ba940b0b7e523200e791b9f98623ab75b65b by Maik Qualmann.
Committed on 15/06/2022 at 17:12.
Pushed by mqualmann into branch 'master'.

fix read creation date from imported items from Import Tool
- Metadata for renaming will only be read after saving in the album
- Correct creation of date based albums.
- Add metadata and camera renaming options in the Import Tool.
- Removed live renaming preview in import view,
  preview for selected item only.
Related: bug 452088, bug 444928, bug 381214, bug 455091
FIXED-IN: 8.0.0

M  +5    -1    NEWS
M  +9    -1    core/utilities/advancedrename/advancedrenamemanager.cpp
M  +1    -0    core/utilities/advancedrename/advancedrenamemanager.h
M  +2    -0    core/utilities/advancedrename/common/parsesettings.h
M  +1    -3    core/utilities/advancedrename/parser/importrenameparser.cpp
M  +4    -1    core/utilities/advancedrename/parser/options/filepropertiesoption.cpp
M  +129  -201  core/utilities/import/backend/cameracontroller.cpp
M  +1    -18   core/utilities/import/backend/cameracontroller.h
M  +1    -1    core/utilities/import/backend/camiteminfo.h
M  +1    -1    core/utilities/import/items/importdelegate.cpp
M  +339  -267  core/utilities/import/main/importui.cpp
M  +9    -10   core/utilities/import/main/importui.h
M  +7    -1    core/utilities/import/main/importui_p.h
M  +8    -28   core/utilities/import/widgets/renamecustomizer.cpp
M  +2    -1    core/utilities/import/widgets/renamecustomizer.h

https://invent.kde.org/graphics/digikam/commit/eeb5ba940b0b7e523200e791b9f98623ab75b65b