From: cristy Date: Mon, 13 Feb 2012 15:50:15 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f58e273a748e1903dde11952feec174e270627bc;p=imagemagick --- diff --git a/coders/pdf.c b/coders/pdf.c index 2e5f2fc09..85e0fa131 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -602,8 +602,9 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) *options='\0'; (void) FormatLocaleString(density,MaxTextExtent,"%gx%g",image->resolution.x, image->resolution.y); - (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) - page.width,(double) page.height); + if (image_info->page != (char *) NULL) + (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) + page.width,(double) page.height); if (cmyk != MagickFalse) (void) ConcatenateMagickString(options,"-dUseCIEColor ",MaxTextExtent); if (cropbox != MagickFalse) diff --git a/coders/ps.c b/coders/ps.c index 7e0f454db..a8e261441 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -758,8 +758,9 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception) *options='\0'; (void) FormatLocaleString(density,MaxTextExtent,"%gx%g", image->resolution.x,image->resolution.y); - (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) - page.width,(double) page.height); + if (image_info->page != (char *) NULL) + (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) + page.width,(double) page.height); read_info=CloneImageInfo(image_info); *read_info->magick='\0'; if (read_info->number_scenes != 0)