[1] ErrorException in Image.php line 82
Allowed memory size of 268435456 bytes exhausted (tried to allocate 167359296 bytes)
'mime' => $info['mime'],
];
//打开图像
if ('gif' == $this->info['type']) {
$this->gif = new Gif($file->getPathname());
$this->im = @imagecreatefromstring($this->gif->image());
} else {
$fun = "imagecreatefrom{$this->info['type']}";
$this->im = @$fun($file->getPathname());
}
if (empty($this->im)) {
throw new ImageException('Failed to create image resources!');
}
}
/**图片处理类总是报错内存耗尽,memory_limit=256了,请大神赐教其他有效解决办法谢谢!
最佳答案