On Thu, 4 Aug 2022, Ivan Shmakov wrote:
While graphicsmagick claims to support ‘Truevision Targa’ format, its implementation is apparently slightly defective in that the images are read and written with their vertical axis reversed. Consider, for instance, SHAPES.TGA from [1]: it’s shown with the gray (#9c9c9c) ‘floor’ at the bottom of the image by both LDPCXTGA.EXE and ImageMagick’s display(1), yet $ gm display SHAPES.TGA shows the floor at the /top/ of the image instead.
I see that a bit of code in 'tga.c' dealing with image orientation was commented out because the compiler warned that it produced an invalid result. That was unfortunately not attended to.
Bob -- Bob Friesenhahn bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt