Summary: | Preview fails when importing images because digiKam uses a wrong path with Gphoto2 camera [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Stefano Ferri <ferriste> |
Component: | Import-Gphoto2 | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, ferriste, metzpinguin, tpr, wazery |
Priority: | NOR | ||
Version: | 3.2.0 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/digikam/7b71987a7f401cf5f906e992382afb5157584630 | Version Fixed In: | 4.6.0 |
Sentry Crash Report: | |||
Attachments: | gphotopreview.patch |
Description
Stefano Ferri
2013-08-02 15:42:35 UTC
Can you try and see what gphoto2 -L gives to you? Are the paths correct there? Can confirm with Nexus7 and MTP. The cause for this is that when you are using a MTP/PTP device the path in CamItemInfo is set to be the path inside your device. And when digikam tries to load a local file with that it of course doesn't work. Possible solutions: - Disable the preview mode completely for non-UMS devices. - Implement loading the file to a temporary file when being previewed and load it from there. Teemu, I vote to disable preview with Gphoto camera in first. It's easy to do... If time permit, the temporary download can be done, but it's not a priority... There are more important bug to fix in first. Gilles Caulier (In reply to comment #1) > Can you try and see what gphoto2 -L gives to you? Are the paths correct > there? Yes, they are: $ gphoto2 -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 is no file in folder '/store_00010001/DCIM/100CANON'. There are 276 files in folder '/store_00010001/DCIM/101CANON'. #1 IMG_0514.JPG rd 3129 KB 3072x2304 image/jpeg [.......] #276 STA_0511.JPG rd 4938 KB 3072x2304 image/jpeg There is no file in folder '/store_00010001/MISC'. I'm sorry for this late reply, I've access to the mentioned camera only in some periods, especially holidays, since it is not mine (it's my father's camera). Created attachment 89913 [details]
gphotopreview.patch
This patch disables the preview at GPhoto driver and the context menu "Open With...".
Git commit 7b71987a7f401cf5f906e992382afb5157584630 by Gilles Caulier. Committed on 10/12/2014 at 22:00. Pushed by cgilles into branch 'master'. apply patch #89913 from Maik Qualmann about to disable preview mode with Gphoto2 camera FIXED-IN: 4.6.0 M +6 -1 utilities/importui/main/importui.cpp M +1 -0 utilities/importui/main/importui.h M +5 -0 utilities/importui/views/importview.cpp M +2 -2 utilities/importui/widgets/importcontextmenu.cpp http://commits.kde.org/digikam/7b71987a7f401cf5f906e992382afb5157584630 |