From: cristy Date: Thu, 29 Dec 2011 16:43:05 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c203853a650fafcba152e27ec9e401bcbe3ee91b;p=imagemagick --- diff --git a/coders/pdf.c b/coders/pdf.c index 4c75b9d54..98a8dec15 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -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) &&