...
diff --git a/coders/json.c b/coders/json.c
index 5396ed0..d61c3d3 100644
--- a/coders/json.c
+++ b/coders/json.c
@@ -1668,7 +1668,7 @@
}
(void) FormatLocaleFile(file," \"tainted\": %s,\n",
image->taint != MagickFalse ? "true" : "false");
- (void) FormatMagickSize(GetBlobSize(image),MagickFalse,"B",MagickPathExtent,
+ (void) FormatMagickSize(image->extent,MagickFalse,"B",MagickPathExtent,
format);
JSONFormatLocaleFile(file," \"filesize\": %s,\n",format);
(void) FormatMagickSize((MagickSizeType) image->columns*image->rows,