hello!
I'm running this command
Code:
convert -format jpg "$i" "/Volumes/TESTHD/JPEG/$i.jpg"
(it's an imagemagick command)
the problem is, it produces files with double extension (.tif.jpg).
to avoid this, I'd like to use something like basename $i, but I don't know hot to put it inside the quotes.
i tried
Code:
convert -format jpg "$i" "/Volumes/TESTHD/JPEG/basename $i.jpg"
but obviously it doesn't work. help!