]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 22 Sep 2018 00:31:37 +0000 (20:31 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 22 Sep 2018 00:31:37 +0000 (20:31 -0400)
coders/tga.c

index 3384ed18effb311464736f98c05d59f9505ed8b5..c95eedbe6d1a9cdc9ac19599756c0bbfde921e6d 100644 (file)
@@ -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)
     {