Fix image conversion naming of files with multiple dots in the name. This relates to issue TDE/tdebase#376

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/19/head
Michele Calgaro 10 months ago
parent 6fbe7fe213
commit 5cf69458e4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -11,20 +11,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"

Loading…
Cancel
Save