]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 29 Dec 2011 16:43:05 +0000 (16:43 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 29 Dec 2011 16:43:05 +0000 (16:43 +0000)
coders/pdf.c

index 4c75b9d54798113d7e504955ccc8c32b870cf2a6..98a8dec15caeba218c5ca384ab3e8052b353d64a 100644 (file)
@@ -537,6 +537,9 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
           }
     if (count != 4)
       continue;
+    if ((fabs(bounds.x2-bounds.x1) <= fabs(hires_bounds.x2-hires_bounds.x1)) &&
+        (fabs(bounds.y2-bounds.y1) <= fabs(hires_bounds.y2-hires_bounds.y1)))
+      continue;
     hires_bounds=bounds;
   }
   if ((fabs(hires_bounds.x2-hires_bounds.x1) >= MagickEpsilon) &&