Version: 1.7.0 (using KDE 4.5.3)
Nikon D7000 has two card slots. Another card can be selected to be a backup of the first card. When photos are imported they are imported from both cards producing a duplicate of every photo.
- Only import photos from main card. Probably user selectable since second card can be also used as an extra space (or RAW to card 1 and JPG to card 2)
- Automatically remove duplicates from list. Photos deleted in camera seem to stay on backup card so simply checking for duplicate would show deleted photos though.
Created attachment 54857 [details]
This patch adds a Filter combobox to status bar which can be used to show only sub set of files in camera/usb drive. Patch also fixes small bug in umscamera.cpp where date was not get from file system info.
Configure dialog for filters not yet implemented.
Created attachment 55313 [details]
Import Filters with Conguration dialog
thanks for the patch. It seems that you have created the patch for the 1.x.x series of digiKam (SVN).
digiKam has moved to git and the current development version is 2.0.0. Could you please verify that the patch is still working with the new development branch and if not, apply the needed changes, so that we can review the patch?
Git super repository to checkout digiKam & co is there :
Created attachment 57966 [details]
Import Filters for 2.0
Import filters updated to 2.0. Could not test it yet since getting a crash.
Created attachment 57967 [details]
Back trace for crash when opening import dialog
Happens also when import filter patch is not applied.
It's definitivly a crash from libgphoto2 :
#6 __libc_realloc (oldmem=0x3801, bytes=9888) at malloc.c:3769
#7 0x00007fd5eaac6553 in register_platform () from /usr/lib/libdc1394.so.22
#8 0x00007fd5b8cede88 in gp_port_library_list () from /usr/lib/libgphoto2_port/0.8.0/usb.so
#9 0x00007fd5fbcda388 in ?? () from /usr/lib/libgphoto2_port.so.0
#10 0x00007fd5f1e3b08e in ?? () from /usr/lib/libltdl.so.7
#11 0x00007fd5f1e3ac66 in ?? () from /usr/lib/libltdl.so.7
#12 0x00007fd5f1e3ad11 in lt_dlforeachfile () from /usr/lib/libltdl.so.7
#13 0x00007fd5fbcda28d in gp_port_info_list_load () from /usr/lib/libgphoto2_port.so.0
#14 0x00000000006f86bc in Digikam::GPCamera::findConnectedUsbCamera (vendorId=1200, productId=1064, model=<value optimized out>, port=<value optimized out>) at /home/damu/Development/src/digikam-software-compilation/core/utilities/cameragui/devices/gpcamera.cpp:1761
#15 0x0000000000574e70 in Digikam::DigikamApp::openSolidCamera (this=0x288e3f0, udi=..., cameraLabel=...) at /home/damu/Development/src/digikam-software-compilation/core/digikam/main/digikamapp.cpp:1828
#16 0x00000000005751b1 in Digikam::DigikamApp::slotOpenSolidCamera (this=0x288e3f0, action=0x4542eb0) at /home/damu/Development/src/digikam-software-compilation/core/digikam/main/digikamapp.cpp:1774
To test your patch, without your camera, create a test album with some image and add it a a test camera. set the camera mount path to your album path.
Forget to said : use UMS (USB Mass Storage) camera type to create test camera.
Tested the new patch (with the usb stick) and it seems to work as in 1.9.0.
Created attachment 62769 [details]
Import Filters for 2.0
Compile with newest git. Any news if this patch gets rejected or accepted?
Sorry for the delay.
You patch is huge. I need to test indeep before to accept.
You have add a dialog to setup filter mime-type.
With current code from git master, i introduced a new settings tab named "behavior" in Camera Setup dialog. Please add your filter settings as a new tab of this, not as a separated dialog.
Look my screenshot for details :
*** Bug 196433 has been marked as a duplicate of this bug. ***
I just updated a lots source code in camera gui. I prepared code for future port of icon-view to qt4 model/view.
Please update your patch to compile fine with current implementation from git master.
Thanks in advance
Look report https://bugs.kde.org/show_bug.cgi?id=204006
This is not the same problem ?
No, my problem is that when using two cards and mirroring feature there are always duplicate images in camera. I don't have time to get back to this until late August, but I'm working on this.
Created attachment 63075 [details]
Import Filters for 2.0
- Configuration moved to setup dialog
- Added mime type filter
Patch downloaded. I will review it soon...
Git commit fbf8bcebe28cafe83db51d73d4b6cfd8ae64921c by Gilles Caulier.
Committed on 24/08/2011 at 15:12.
Pushed by cgilles into branch 'master'.
apply path #63075 from Petri Damsten To add new filter option for camera icon view
M +1 -0 utilities/cameragui/CMakeLists.txt
M +5 -0 utilities/cameragui/main/cameraui_p.h
A +79 -0 utilities/setup/importfilters.h [License: GPL (v2+)]
A +102 -0 utilities/cameragui/widgets/filtercombo.h [License: GPL (v2+)]
M +23 -13 utilities/cameragui/main/cameraui.cpp
M +1 -0 utilities/cameragui/main/cameraui.h
M +1 -0 CMakeLists.txt
M +5 -0 utilities/setup/setupcamera.h
A +295 -0 utilities/cameragui/widgets/filtercombo.cpp [License: GPL (v2+)]
A +225 -0 utilities/setup/importfilters.cpp [License: GPL (v2+)]
M +141 -0 utilities/setup/setupcamera.cpp
I commit your patch reviewed (with some coding style adjustments)
Some remark to improve it and to close definitively this entry :
- In importfilter.cpp, ElidedLabel can be remplaced by KSqueezedTextLabel from KDE API.
- In importfilter.h, please use a d private internal container to speed-up compilation and reduce header files to includes.
- There is a suggestion about to add a filter for unwanted files in camera icon-view. This feature is already implemented and hardcoded in CameraUI::slotRefreshIconViewTimer(), to handle "mgr_data", "pgr_mgr", "dsp", and "dps" as always unlisted files from camera. I think this must be configurable somewhere in setup to be able to add new type to ignore from camera. What do you think about ?
Can those fixes be committed directly to master?
I could add 'Always Ignore' field to 'Import Filters'-page?
You have a git account as developer ? If yes, sure, let's go...
And yes, 'Always Ignore' field must be add to 'Import Filters' page.
Thanks for your help
Git commit e58c3ab15b4b6495f993075e021d6fb557d0637a by Petri Damstén.
Committed on 24/08/2011 at 15:53.
Pushed by pdamsten into branch 'master'.
Use KSqueezedTextLabel widget.
M +2 -3 utilities/setup/importfilters.h
M +2 -30 utilities/setup/importfilters.cpp
Created attachment 63132 [details]
Always ignore box to import filter page. Ok to commit?
yes sure, and let's go to close this file with BUGS macro (:=)))
Different email in git so BUGS macro did not close it. Closing it here.