1. 程式人生 > >解決php的imagick庫Strict Standards: Imagick::clone method is deprecated and it's use should be avoided

解決php的imagick庫Strict Standards: Imagick::clone method is deprecated and it's use should be avoided

php的imagick庫呼叫clone方法時會報Strict Standards: Imagick::clone method is deprecated and it's use should be avoided

解決方法很簡單:

//$thumbnail = $im->clone(); //Strict Standards: Imagick::clone method is deprecated and it's use should be avoided
$thumbnail = clone $im;