for i in *.jpg
do
n="$(basename "${i}" '.jpg')"
convert "${i}" "${n}.png"
convert "${i}" "${n}.tga"
convert "${n}.png" "${n}.png.tga"
done
When I said converting from jpg to png to tga worked, in fact I had only tested with one file. It's not always true. With the provided "noships.jpg" file, the bug is carried over the png.
Bad news, sometime the converted png from jpg displays properly but is then set upside-down when converting from png to tga.
I updated the screenshot of the bug: /dl.illwieckz. net/b/imagemagi ck/bugs/ convert- jpg-to- tga-upside- down/convert- jpg-to- tga-upside- down.png
https:/
And the script to reproduce: /dl.illwieckz. net/b/imagemagi ck/bugs/ convert- jpg-to- tga-upside- down/convert- jpg-to- tga-upside- down.sh
https:/
Which now looks like this:
for i in *.jpg
do
n="$(basename "${i}" '.jpg')"
convert "${i}" "${n}.png"
convert "${i}" "${n}.tga"
convert "${n}.png" "${n}.png.tga"
done
When I said converting from jpg to png to tga worked, in fact I had only tested with one file. It's not always true. With the provided "noships.jpg" file, the bug is carried over the png.