tga to tiff gets rotated

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

tga to tiff gets rotated

Post by jan82 »

When converting a tga to tiff the output gets rotated. It has a "Mirror vertical" orientation header.

Example file: https://static.online-convert.com/examp ... _small.tga

Command: convert example_small.tga out.tiff
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: tga to tiff gets rotated

Post by snibgo »

What version of IM?

It seems to work fine for me, with IM v6.9.9-50. If your version is old, I suggest you upgrade.
snibgo's IM pages: im.snibgo.com
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: tga to tiff gets rotated

Post by jan82 »

It is not working with ImageMagick 7.0.8-14 but working e.g. with 7.0.8-9.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: tga to tiff gets rotated

Post by snibgo »

For v7, I suggest you use "magick", not "convert" or "magick convert".

It works fine for v7.0.7-28. Perhaps you have found a recent bug.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tga to tiff gets rotated

Post by fmw42 »

I can confirm that the result is 180 deg rotated in the output tiff in IM 7.0.8.14, but works fine in IM 6.9.10.14 Q16 Mac OSX.
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: tga to tiff gets rotated

Post by jan82 »

Hi,
are there any news about this bug? Is there a bug tracker somewhere that I can check if it is fixed?

Thanks!
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: tga to tiff gets rotated

Post by jan82 »

User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tga to tiff gets rotated

Post by fmw42 »

Using IM 7.0.8.15 Q16 Mac OSX Sierra, it works fine for PNG and JPG but not for TIF

This works:

Code: Select all

magick example_small.tga tmp.png

This works:

Code: Select all

magick example_small.tga tmp.jpg

This does not:

Code: Select all

magick example_small.tga tmp.tif
This also fails in IM 6.9.10.15 Q16 Mac OSX Sierra

Code: Select all

convert example_small.tga tmp.tif
jan82
Posts: 9
Joined: 2018-03-05T06:23:08-07:00
Authentication code: 1152

Re: tga to tiff gets rotated

Post by jan82 »

Thanks, I updated the report with your hints.
Post Reply