Monday, September 28, 2015

Generic convert command

To run a convert command on a selected file and keep the name of the file without adding the input extension into the output name

program "$0" "${0%%.*}".extension' %f

Example:

convert "$0" "${0%%.*}".png' %f

That can be used in a desktop file with bash:

Exec=bash -c 'convert "$0" "${0%%.*}".png' %f

No comments:

Post a Comment