imagick icon indicating copy to clipboard operation
imagick copied to clipboard

No error check in Imagick::__toString()

Open Danack opened this issue 3 years ago • 2 comments

	image_contents = MagickGetImageBlob(intern->magick_wand, &image_size);
	if (!image_contents) {
		return;
	}

And apparently it does fail...

Danack avatar Sep 01 '22 14:09 Danack

The getImageBlog is fixed but there is still no check in __toString so will repurpose this.

bukka avatar Jun 08 '25 16:06 bukka

Also we should probably trow in __toString on PHP versions that support exception there.

bukka avatar Jun 08 '25 16:06 bukka