From 955d2f7c06bd74ea9b8e93f8afb9b44f3ab509fc Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Fri, 21 Jul 2023 09:50:02 +0900 Subject: konqueror plugin: improve code for image conversion. This resolves issue TDE/tdebase#376. Signed-off-by: OBATA Akio Signed-off-by: Michele Calgaro --- konq-plugins/imagerotation/imageconverter.desktop | 8 ++++---- 1 file 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' -- cgit v1.2.1