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>
pull/18/head
Michele Calgaro 1 year ago
parent f07dd2b54f
commit 5de6592237
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -12,19 +12,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