From c203853a650fafcba152e27ec9e401bcbe3ee91b Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 29 Dec 2011 16:43:05 +0000 Subject: [PATCH] --- coders/pdf.c | 3 +++ 1 file changed, 3 insertions(+) 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) && -- 2.40.0