summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2023-07-21 09:50:02 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-21 17:19:56 +0900
commit955d2f7c06bd74ea9b8e93f8afb9b44f3ab509fc (patch)
tree22635e9c6d4d5d607db330c0823c91e88f3b12cb
parent826b1b771cc20f515acf936bd3a2dcd83ce353b8 (diff)
downloadtdeaddons-955d2f7c06bd74ea9b8e93f8afb9b44f3ab509fc.tar.gz
tdeaddons-955d2f7c06bd74ea9b8e93f8afb9b44f3ab509fc.zip
konqueror plugin: improve code for image conversion. This resolves issue TDE/tdebase#376.
Signed-off-by: OBATA Akio <obache@wizdas.com> Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--konq-plugins/imagerotation/imageconverter.desktop8
1 files changed, 4 insertions, 4 deletions
diff --git a/konq-plugins/imagerotation/imageconverter.desktop b/konq-plugins/imagerotation/imageconverter.desktop
index aee3c6f..62b0ca7 100644
--- a/konq-plugins/imagerotation/imageconverter.desktop
+++ b/konq-plugins/imagerotation/imageconverter.desktop
@@ -12,19 +12,19 @@ TryExec=convert
[Desktop Action convToJPEG]
Name=JPEG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.jpg"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].jpg'
[Desktop Action convToPNG]
Name=PNG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.png"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].png'
[Desktop Action convToTIF]
Name=TIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.tif"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].tif'
[Desktop Action convToGIF]
Name=GIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.gif"
+Exec=convert %f -set filename:base "%d/%t" '%[filename:base].gif'