Rotating JPEGs in Konqueror
Here is a little tip on how to perform lossless jpeg rotation via a
service menu in Konqueror.
apt-get install libjpeg-progs
Then create a new desktop entry file
in /usr/share/apps/konqueror/servicemenus. Call it whatever you like but
with the *.desktop extension and add this to the file:
---------------------------
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=image/jpeg
Actions=RotateJpegCCW;RotateJpegCW
[Desktop Action RotateJpegCCW]
Name=Rotate JPEG 90 deg CCW
Exec=jpegtran -rot 270 -perfect "%f" > `echo '%f' | sed 's/\.
\([^.]*$\)/_rot90ccw.\1/'`
[Desktop Action RotateJpegCW]
Name=Rotate JPEG 90 deg CW
Exec=jpegtran -rot 90 -perfect "%f" > `echo '%f' | sed 's/\.
\([^.]*$\)/_rot90cw.\1/'`
--------------------------
Funny, after doing this, I found this little program KIM that does all
that and more (http://bouveyron.free.fr/kim/index.html). Don't know if
there are any Debian packages available for it though.
Olle
Reply to: