Bug 412466 - Suggestion: Import from a camera under Windows using WIA interface.
Summary: Suggestion: Import from a camera under Windows using WIA interface.
Status: REOPENED
Alias: None
Product: digikam
Classification: Applications
Component: Import-WIA (show other bugs)
Version: 6.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-30 08:35 UTC by alain.pouchard1410
Modified: 2022-02-17 14:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alain.pouchard1410 2019-09-30 08:35:10 UTC
To be able to import from a camera with possibility of choice of the files to import:
- Camera
- Screeeshots
- Office lens
- WhatsAPp pictures
- Whatsapp video
... etc.

I am not comfortable with the debug site and I do not know where to go. This is not a malfunction, it is a furtur development suggestion for imports.
Comment 1 caulier.gilles 2019-09-30 09:02:29 UTC
Import under Windows will can be done only with USB Mass Storage. Gphoto2 is not yet ported under Windows.
Comment 2 caulier.gilles 2021-01-08 16:05:12 UTC
Git commit c3077451a517fb160e0e25a9991a279948610500 by Gilles Caulier.
Committed on 08/01/2021 at 15:58.
Pushed by cgilles into branch 'master'.

Add new dialog with all devices detected by KF5::Solid hardware interface.
This will allow to investiguate about missing device detections, or wrong device types assignments in Solid interface, especially under Windows and macOS.
Related: bug 393416, bug 379970, bug 381729, bug 398166, bug 431107

M  +2    -1    core/app/main/digikamui5.rc
M  +2    -0    core/libs/dialogs/CMakeLists.txt
A  +327  -0    core/libs/dialogs/solidhardwaredlg.cpp     [License: GPL (v2+)]
A  +57   -0    core/libs/dialogs/solidhardwaredlg.h     [License: GPL (v2+)]
M  +11   -0    core/libs/widgets/mainview/dxmlguiwindow.cpp
M  +1    -0    core/libs/widgets/mainview/dxmlguiwindow.h
M  +2    -1    core/showfoto/main/showfotoui5.rc
M  +12   -0    core/tests/miscs/CMakeLists.txt
A  +41   -0    core/tests/miscs/solidhardware.cpp     [License: GPL (v2+)]
M  +2    -1    core/utilities/imageeditor/main/imageeditorui5.rc
M  +3    -1    core/utilities/import/main/importui5.rc
M  +2    -1    core/utilities/lighttable/lighttablewindowui5.rc
M  +2    -1    core/utilities/queuemanager/main/queuemgrwindowui5.rc

https://invent.kde.org/graphics/digikam/commit/c3077451a517fb160e0e25a9991a279948610500
Comment 3 caulier.gilles 2021-01-09 19:23:05 UTC
Git commit 1d69260946da53b92067105224468723482e2f8c by Gilles Caulier.
Committed on 09/01/2021 at 19:20.
Pushed by cgilles into branch 'master'.

Solid Hardware resume dialog. Use real tree-view to display list of devices and properties.
Implement search and copy to clipboard for hacking purpose and help end users to report problem in bug files.
Add Refresh button to list new hot-plugged hardwares.
Related: bug 393416, bug 379970, bug 381729, bug 398166, bug 431107

M  +171  -183  core/libs/dialogs/solidhardwaredlg.cpp
M  +2    -0    core/libs/dialogs/solidhardwaredlg.h

https://invent.kde.org/graphics/digikam/commit/1d69260946da53b92067105224468723482e2f8c
Comment 4 caulier.gilles 2021-01-10 16:10:02 UTC
Git commit cdee9fb951c3f1b3aa354535174eb7c232a241eb by Gilles Caulier.
Committed on 10/01/2021 at 16:02.
Pushed by cgilles into branch 'master'.

Solid info dialog: add new tab with hotplug device events.
With this kind of tool, we can idenitfy quickly which device with properties is plug/unplug and detected by Solid framework.
As exemple, in this screenshoot, see my Iphone 7 connected and disconnected from USB port: https://i.imgur.com/dfL1Grs.png
Of course, if nothing happen in this view, this want mean that device is not recognized at all from Solid framework,
and end-user need to report this problem to Solid team.
Related: bug 393416, bug 379970, bug 381729, bug 398166, bug 431107

M  +14   -4    core/libs/dialogs/infodlg.cpp
M  +5    -4    core/libs/dialogs/infodlg.h
M  +96   -3    core/libs/dialogs/solidhardwaredlg.cpp
M  +3    -0    core/libs/dialogs/solidhardwaredlg.h

https://invent.kde.org/graphics/digikam/commit/cdee9fb951c3f1b3aa354535174eb7c232a241eb
Comment 5 caulier.gilles 2022-01-20 09:35:59 UTC
Hi all,

GPhoto2 camera drivers support under Windows will be added to next 7.6.0 release. See the story on bug https://bugs.kde.org/show_bug.cgi?id=398166

Gilles Caulier

*** This bug has been marked as a duplicate of bug 398166 ***
Comment 6 caulier.gilles 2022-02-01 12:53:58 UTC
Another way to handle native Windows camera driver is to use WIA::PTP API

https://docs.microsoft.com/en-us/windows-hardware/drivers/image/ptp-driver

WIA header exist in MinGW since 5.0 so it will not be a problem to cross compiled a future wrapper in digiKam under Windows with MXE:

https://sources.debian.org/src/mingw-w64/5.0.1-1/mingw-w64-headers/include/wia.h/

Here an old Qt code to play with WIA::PTP :

https://github.com/Litux1516/qtwialib

Gilles Caulier
Comment 7 caulier.gilles 2022-02-17 14:03:26 UTC
More recent WIA demo based code using Qt:

https://github.com/GhuHere/WIADemo
Comment 8 caulier.gilles 2022-02-17 14:17:12 UTC
Documentation about Qt WIA interface.

https://blog.csdn.net/qq_39977941/article/details/107507678