From: cristy Date: Mon, 26 Jul 2010 14:50:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a703811a5c79146bc00c1d6ded3b1cd83aaf72e;p=imagemagick --- diff --git a/magick/image.c b/magick/image.c index a5286d346..56d6dd7a0 100644 --- a/magick/image.c +++ b/magick/image.c @@ -305,16 +305,6 @@ MagickExport Image *AcquireImage(const ImageInfo *image_info) if (option != (const char *) NULL) image->dispose=(DisposeType) ParseMagickOption(MagickDisposeOptions, MagickFalse,option); - option=GetImageOption(image_info,"page"); - if (option != (const char *) NULL) - { - char - *geometry; - - geometry=GetPageGeometry(option); - flags=ParseAbsoluteGeometry(geometry,&image->page); - geometry=DestroyString(geometry); - } return(image); } @@ -4017,8 +4007,8 @@ MagickExport MagickBooleanType SyncImageSettings(const ImageInfo *image_info, property[MaxTextExtent]; const char - *value, - *option; + *option, + *value; GeometryInfo geometry_info; @@ -4127,6 +4117,16 @@ MagickExport MagickBooleanType SyncImageSettings(const ImageInfo *image_info, if (option != (const char *) NULL) image->orientation=(OrientationType) ParseMagickOption( MagickOrientationOptions,MagickFalse,option); + option=GetImageOption(image_info,"page"); + if (option != (const char *) NULL) + { + char + *geometry; + + geometry=GetPageGeometry(option); + flags=ParseAbsoluteGeometry(geometry,&image->page); + geometry=DestroyString(geometry); + } option=GetImageOption(image_info,"quality"); if (option != (const char *) NULL) image->quality=StringToUnsignedLong(option);