summaryrefslogtreecommitdiffstats
path: root/konq-plugins/imagerotation
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-14 11:16:27 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-17 19:53:18 +0900
commit97029726d5e2cb8e9eae0fa8d07f481dc243cd60 (patch)
treeb84888774844494ba441ab3bbf2eb870a008b7a8 /konq-plugins/imagerotation
parentb5ae045e4d4ec4a3736719acc3d078f227653889 (diff)
downloadtdeaddons-97029726d5e2cb8e9eae0fa8d07f481dc243cd60.tar.gz
tdeaddons-97029726d5e2cb8e9eae0fa8d07f481dc243cd60.zip
Fix image conversion naming of files with multiple dots in the name. This resolves issue TDE/tdebase#376
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 5de65922373dfa10fd63b3f59378e89c64f9307b)
Diffstat (limited to 'konq-plugins/imagerotation')
-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 07270cc..aee3c6f 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/\.[^.]+$//'`.jpg"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.jpg"
[Desktop Action convToPNG]
Name=PNG
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.png"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.png"
[Desktop Action convToTIF]
Name=TIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.tif"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.tif"
[Desktop Action convToGIF]
Name=GIF
Icon=image-x-generic
-Exec=convert %f "`echo %f | perl -pe 's/\.[^.]+$//'`.gif"
+Exec=convert %f "`echo %f | perl -pe 's/\.[^.\/]+\n//'`.gif"