From: Cristy Date: Fri, 25 Oct 2019 16:11:52 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1763 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62b1c449347b1a3ae3a9bcfae0407b30803ec9b9;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1763 --- diff --git a/coders/ps.c b/coders/ps.c index 5981d925c..3a4e327cf 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -628,9 +628,9 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception) info.bounds.x1,info.bounds.y1); (void) SetImageProperty(image,"ps:HiResBoundingBox",geometry,exception); page.width=(size_t) ceil((double) ((info.bounds.x2-info.bounds.x1)* - MagickMax(resolution.x/delta.x,0.0))-0.5); + resolution.x/delta.x)); page.height=(size_t) ceil((double) ((info.bounds.y2-info.bounds.y1)* - MagickMax(resolution.y/delta.y,0.0))-0.5); + resolution.y/delta.y)); } fitPage=MagickFalse; option=GetImageOption(image_info,"eps:fit-page");