diff options
author | OBATA Akio <obache@wizdas.com> | 2023-07-23 11:17:00 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-23 11:17:00 +0900 |
commit | 552ed5a5e18336037508ff9524e7c4cfc6b156b6 (patch) | |
tree | 1997e045f976af84fcad2a16842e3e353a13d764 | |
parent | 614887eb433d4e2f40808f60e3993d7a0bf51caa (diff) | |
download | dolphin-552ed5a5e18336037508ff9524e7c4cfc6b156b6.tar.gz dolphin-552ed5a5e18336037508ff9524e7c4cfc6b156b6.zip |
Improve code for image conversion. This relates to issue TDE/tdebase#376.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | src/servicemenus/imageconverter.desktop | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/servicemenus/imageconverter.desktop b/src/servicemenus/imageconverter.desktop index 8da4b6f..dceb183 100644 --- a/src/servicemenus/imageconverter.desktop +++ b/src/servicemenus/imageconverter.desktop @@ -11,19 +11,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' |