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 1 year ago
parent 6fbe7fe213
commit 5cf69458e4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -11,20 +11,19 @@ TryExec=convert
[Desktop Action convToJPEG] [Desktop Action convToJPEG]
Name=JPEG Name=JPEG
Icon=image-x-generic 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] [Desktop Action convToPNG]
Name=PNG Name=PNG
Icon=image-x-generic 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] [Desktop Action convToTIF]
Name=TIF Name=TIF
Icon=image-x-generic 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] [Desktop Action convToGIF]
Name=GIF Name=GIF
Icon=image-x-generic 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