Comment 2 for bug 1838860

Revision history for this message
Thomas Debesse (illwieckz) wrote :

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:
https://dl.illwieckz.net/b/imagemagick/bugs/convert-jpg-to-tga-upside-down/convert-jpg-to-tga-upside-down.png

And the script to reproduce:
https://dl.illwieckz.net/b/imagemagick/bugs/convert-jpg-to-tga-upside-down/convert-jpg-to-tga-upside-down.sh

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.