Bug 495691

Summary: Application is missing "Auto-Detect" for configuring camera (Pixel 7 Pro in PTP mode), and manually configuring isn't working
Product: [Applications] digikam Reporter: jgeorgeson
Component: Import-WIAAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: caulier.gilles, metzpinguin
Priority: NOR    
Version: 8.4.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshots of all the relevant camera/import screens and Windows Explorer

Description jgeorgeson 2024-11-01 14:45:47 UTC
Created attachment 175448 [details]
Screenshots of all the relevant camera/import screens and Windows Explorer

***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

I have posted on a discuss.kde.org thread here

https://discuss.kde.org/t/cant-import-from-pixel-on-windows/13176/3

Looking at the documentation

https://docs.digikam.org/en/supported_materials/camera_devices.html
https://docs.digikam.org/en/setup_application/camera_settings.html
http://www.gphoto.org/proj/libgphoto2/support.php

I gather that there should be some capacity for digikam to detect my Pixel 7 connected in PTP mode as a camera. But I do not have the "Auto-Detect" button pictured in the screenshot on the camera settings documentation page. Nor have I have anywhere in the UI with the list of supported cameras shown on both the camera devices and camera settings documentation pages.

The gphoto supported cameras link lists the Pixel as supported. Are windows users expected to compile and install gphoto themselves? The "Component" field here in Bugzilla having a selection for "Import-WIA" implies to me that digikam does not use gphoto on Windows. But I know for certain that the Windows WIA PTP system recognizes my phone as a camera when connected in PTP mode it presents with a camera icon in Windows Explorer and in MS Photos.

STEPS TO REPRODUCE
1. Install digikam 8.4.0 on Windows 11
2. Connect Pixel 7 phone via USB and set it to PTP mode
3. Open digikam
4. Select "Import > Cameras" observe list is empty
5. Select "Add Camera Manually"
6. Observer there is no "Auto-Detect" button
7. Supply value in Name field, select USB connection, haven't found any docs on what to put under mount so leave it as default and save
8. Select "Import > Pixel 7" and import dialog shows an error.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 jgeorgeson 2024-11-01 14:47:52 UTC
Sorry, didn't scroll enough in the original submission. My OS version is Windows 11 23H2 (22631.4317)
Comment 2 Maik Qualmann 2024-11-01 15:30:55 UTC

*** This bug has been marked as a duplicate of bug 388137 ***
Comment 3 Maik Qualmann 2024-11-01 15:31:54 UTC
See also Bug 412466

Maik
Comment 4 jgeorgeson 2024-11-01 16:30:19 UTC
(In reply to Maik Qualmann from comment #3)
> See also Bug 412466
> 
> Maik

Thanks. I'll subscribe to some of those. But given that the only connection options are MTP or PTP and neither of those receives an UNC path, it would appear there's currently no possibility of importing directly from my phone on windows.
Comment 5 caulier.gilles 2024-11-01 16:33:27 UTC
Hi,

The windows API must be used here to handle notification from the connected device and to get path and query the download command.

Gphoto2 do not work under Windows.

Typically another backend must be created to use the WIA API (or another one, i don't know) from Microsoft.

Best regards

Gilles Caulier