Bug 276330

Summary: Keyboard Shortcut doubled, orientation change not saved in exif nor xmp
Product: [Applications] digikam Reporter: manew
Component: Usability-KeyboardAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles, manew
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.5.0
Sentry Crash Report:
Attachments: ZIP File with further information as described in "Additional Information"

Description manew 2011-06-23 14:51:52 UTC
Created attachment 61275 [details]
ZIP File with further information as described in "Additional Information"

Version:           2.0.0
OS:                Linux

> How can standard keyboard shortcuts be removed? 
  (like 3 to rotate pictures)

While rating a picture in digikam with the custom key"3" the picture in digikam will be rotated to the right.
The thumbnail will stay upright until it is refreshed by "Menu>Album>Rebuild Thumbnail in current album" Afterwards it is rotated to the right as well.
Based on the md5sum it seems that the original pictures are not changed.

It seems, that the "orientation" in table "imageinformation" is changed but not the exif or XMP details.

I assume that the odd rotation takes place due to double key assignments. 

Well really I would prefer if all keyboard shortcuts used in Digikam will be customizable and shown in "Menu>Einstellungen>Kurzbefehle festlegen ..."
For my installation the list of available shortcuts is rather short.
If I add my own shortcut I would assume that this overrules standard settings.

It was possible to apply some tweaks by 
	> saving the Default Settings to "~/.kde/share/apps/digikam/"
	> copying the file "digikamDefaultshortcuts.rc" to "digikammanewshortcuts.rc"
	> adjsting settings within the file "digikammanewshortcuts.rc"
	> restart digikam
	> choose "Menu>Einstellungen>Kurzbefehle festlegen"
		> push "Details"
		> choose "manew" in dropdownlist
		> push ok
	  > unfortunately this is required after each restart of digikam, as the "manew" Profile is not automatically reused



Reproducible: Always

Steps to Reproduce:
> Press key 3 after a picture in portrait orientation was imported

Actual Results:  
> picture is rotated to the right (like a landscape), the thumbnail remains unchanged until it is manual recreated.
> rating 3 is applied

Expected Results:  
Either

> rating 3 is applied, as the custom shortcut is defined for this action

Or:
> Rotation is done due to the standard keyboard shortcut and applied not only in visual mode, but as well in exif information, thumbnail etc.

Please refer to the steps below to gain an overview how the attached ZIP-File was created:
> in Album:
 mkdir analysis
 cd analysis/
 mkdir 1_on_camera 2_after_import 3_after_rating3 settings
#copy from source
 cp -a /media/NIKON\ D90/DCIM/100DIRKN/_DSC9193.NEF 1_on_camera/
#backup after import process with digikam
 cp -a ../_DSC9193.NEF 2_after_import/
#backup after rating with key "3" was applied:
 cp -a ../_DSC9193.NEF* 3_after_rating/
 exiftool -a -u -g1 2_after_import/_DSC9193.NEF >exiftool2.txt
 exiftool -a -u -g1 3_after_rating3/_DSC9193.NEF >exiftool3.txt
 exiftool -a -u -g1 3_after_rating3/_DSC9193.NEF.xmp >exiftool3xmp.txt
 md5sum */*.NEF >md5compare.txt
 digikam -v >>digikamversion.txt
 cp -a ~/.kde/share/apps/digikam settings/
 vi getDigikamDbDetails.sh 
 chmod 755 getDigikamDbDetails.sh 
 ./getDigikamDbDetails.sh >> DigikamOrientation.txt
 cd ..
 zip -r analysis analysis -x \*.NEF

I use the ppa Version of digikam2 beta6:
2:2.0.0~beta6-natty~ppa1

This error description might be related to 
Bug 273519 - When adding rating portrait images are rotated to landscape 
Bug 275077 - tag key shortcuts not under settings --> configure shortcuts and block setting same shortcut for something different
Comment 1 caulier.gilles 2011-12-16 16:04:43 UTC
This report sound like garbage. I don't understand..

Gilles Caulier
Comment 2 manew 2011-12-17 15:08:32 UTC
Hello Gilles,
sorry english is a foreign language to me.
I'm happy that a part of the problem was solved when I updated to version 2.4.1

1.) When a custom action to the keystroke "3" was configured the custom action was performed as well as an image rotation. 
In the updated version 2.4.1 only the custom action is performed, I do not see this strange rotation in the preview image anymore -> great!

2.) The custom key setup stored as "manew" is not atomatically loaded on application start. It is selected in the dropdownlist "aktuelles schema" in Menu>Einstellungen>Kurzbefehle festlegen><Details>. But I have to reselect it to load its configuration. After the reload everything is currently working as expected.

> It would be great, if the custom keyboard layout is automatically loaded at application start.