您好我Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 21944 bytes)
在尝试使用 imagecreatefromstring 时出错
$imageFile = imagecreatefromstring($image);
if ($imageFile !== false) {
$width = ImageSX($imageFile);
$height = ImageSY($imageFile);
}
if ($this->isExifInstalled) {
@$type = exif_imagetype($source);
$mime = image_type_to_mime_type($type);
}
if ($mime === "application/octet-stream") {
$mime = $this->image_file_type_from_binary($image);
}
if ($mime === "application/octet-stream") {
$mime = $this->getMimeTypeFromUrl($source);
}
imagedestroy($imageFile);