From: Cristy Date: Wed, 19 Dec 2018 23:44:19 +0000 (-0500) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=35212 X-Git-Tag: 7.0.8-20~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e45f497223796662265afd1465f8f26116ae4e4;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=35212 --- diff --git a/MagickCore/identify.c b/MagickCore/identify.c index 6764ee6c2..10729e1f6 100644 --- a/MagickCore/identify.c +++ b/MagickCore/identify.c @@ -1474,8 +1474,7 @@ MagickExport MagickBooleanType IdentifyImage(Image *image,FILE *file, } (void) FormatLocaleFile(file," Tainted: %s\n",CommandOptionToMnemonic( MagickBooleanOptions,(ssize_t) image->taint)); - (void) FormatMagickSize(GetBlobSize(image),MagickTrue,"B",MagickPathExtent, - format); + (void) FormatMagickSize(image->extent,MagickTrue,"B",MagickPathExtent,format); (void) FormatLocaleFile(file," Filesize: %s\n",format); (void) FormatMagickSize((MagickSizeType) image->columns*image->rows, MagickFalse,"P",MagickPathExtent,format); diff --git a/MagickCore/image.c b/MagickCore/image.c index bad8255f5..58a0065e4 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -839,6 +839,7 @@ MagickExport Image *CloneImage(const Image *image,const size_t columns, GetTimerInfo(&clone_image->timer); if (image->ascii85 != (void *) NULL) Ascii85Initialize(clone_image); + clone_image->extent=image->extent; clone_image->magick_columns=image->magick_columns; clone_image->magick_rows=image->magick_rows; clone_image->type=image->type;