/*
Native blob support for this image format.
*/
- blob_info->length=0;
blob_info->blob=(void *) AcquireQuantumMemory(image->columns,
image->rows*sizeof(unsigned char));
if (blob_info->blob == (void *) NULL)
(void) CloseBlob(image);
image->blob->exempt=MagickTrue;
*image->filename='\0';
+ blob_info->length=image->columns*image->rows;
status=WriteImage(blob_info,image,exception);
- *length=image->blob->length;
+ *length=image->blob->offset;
blob=DetachBlob(image->blob);
if (status == MagickFalse)
blob=(unsigned char *) RelinquishMagickMemory(blob);
%
% o images: the image list.
%
-% o length: This pointer to a size_t integer sets the initial length of the
-% blob. On return, it reflects the actual length of the blob.
+% o length: return the actual length of the blob.
%
% o exception: return any errors or warnings in this structure.
%
/*
Native blob support for this images format.
*/
- blob_info->length=0;
blob_info->blob=(void *) AcquireQuantumMemory(images->columns,
images->rows*sizeof(unsigned char));
if (blob_info->blob == (void *) NULL)
(void) CloseBlob(images);
images->blob->exempt=MagickTrue;
*images->filename='\0';
+ blob_info->length=images->columns*images->rows;
status=WriteImages(blob_info,images,images->filename,exception);
- *length=images->blob->length;
+ *length=images->blob->offset;
blob=DetachBlob(images->blob);
if (status == MagickFalse)
blob=(unsigned char *) RelinquishMagickMemory(blob);