Improve code for image conversion. This relates to issue TDE/tdebase#376.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/21/head
OBATA Akio 1 year ago committed by Michele Calgaro
parent 614887eb43
commit 552ed5a5e1
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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'

Loading…
Cancel
Save