From: Cristy Date: Sat, 23 Mar 2019 18:05:14 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1522 X-Git-Tag: 7.0.8-35~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee3dae8624e69261760754442827aea4d0254a6f;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1522 --- diff --git a/MagickCore/image.c b/MagickCore/image.c index 65e865af5..c089ab357 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -258,10 +258,11 @@ MagickExport Image *AcquireImage(const ImageInfo *image_info, geometry_info; flags=ParseGeometry(image_info->density,&geometry_info); - image->resolution.x=geometry_info.rho; - image->resolution.y=geometry_info.sigma; - if ((flags & SigmaValue) == 0) - image->resolution.y=image->resolution.x; + if ((flags & RhoValue) != 0) + image->resolution.x=geometry_info.rho; + image->resolution.y=image->resolution.x; + if ((flags & SigmaValue) != 0) + image->resolution.y=geometry_info.sigma; } if (image_info->page != (char *) NULL) {