From 7b5bab33f382e71075b21729445612bb168882d2 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 21 Sep 2018 20:31:37 -0400 Subject: [PATCH] ... --- coders/tga.c | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) 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) { -- 2.40.0