
One annoying thing that has plagued my laptop is that right-clicking a JPEG in Dolphin makes a menu fly out with unusable options to rotate and flip the image. They don’t work because jpegorient doesn’t come with openSUSE 11.1, and I don’t know what it is or how to get it. I’ve been using the convert command (a part of ImageMagick) from a command line, so I wondered if I could make the Actions menu use it as well.
I edited the ServiceMenu file for the Actions menu, which is at /usr/share/kde4/services/ServiceMenus/jpegorient.desktop on my computer. You can execute locate jpegorient.desktop or find jpegorient.desktop if you don’t see it at that path. The changes are below in bold.
Name=Rotate Clockwise
Icon=object-rotate-right
Exec=convert -rotate 90 %F %F
[Desktop Action jpegRot270]
Name=Rotate Counter-Clockwise
Icon=object-rotate-left
Exec=convert -rotate 270 %F %F
#[Desktop Action jpegRot180]
#Name=Rotate 180
#Icon=misc
#Exec=jpegorient +180 %F
[Desktop Action jpegFlipV]
Name=Flip Vertically
Icon=2uparrow
Exec=convert -flip %F %F
[Desktop Action jpegFlipH]
Name=Flip Horizontally
Icon=2rightarrow
Exec=convert -flop %F %F