From: Cristy Date: Sat, 22 Sep 2018 00:31:37 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-12~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b5bab33f382e71075b21729445612bb168882d2;p=imagemagick ... --- diff --git a/coders/tga.c b/coders/tga.c index 3384ed18e..c95eedbe6 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -307,28 +307,16 @@ static Image *ReadTGAImage(const ImageInfo *image_info, if (tga_info.attributes & (1UL << 4)) { if (tga_info.attributes & (1UL << 5)) - { - image->orientation=TopRightOrientation; - SetImageArtifact(image,"tga:image-origin","TopRight"); - } + image->orientation=TopRightOrientation; else - { - image->orientation=BottomRightOrientation; - SetImageArtifact(image,"tga:image-origin","BottomRight"); - } + image->orientation=BottomRightOrientation; } else { if (tga_info.attributes & (1UL << 5)) - { - image->orientation=TopLeftOrientation; - SetImageArtifact(image,"tga:image-origin","TopLeft"); - } + image->orientation=TopLeftOrientation; else - { - image->orientation=BottomLeftOrientation; - SetImageArtifact(image,"tga:image-origin","BottomLeft"); - } + image->orientation=BottomLeftOrientation; } if (image_info->ping != MagickFalse) {