wp_create_thumbnail()创建一个图片编辑器,实现旋转/改变大小/另存

目录

描述

This function was deprecated in 3.5. Use wp_get_image_editor() instead.

This was once used to create a thumbnail from an Image given a maximum side size.

wp_create_thumbnail() 描述

参数

$file

(mixed) (必填) Filename of the original image, Or attachment id.

默认值: None

$max_side

(integer) (必填) Maximum length of a single side for the thumbnail.

默认值: None

$deprecated

(mixed) (必填) Function was never used

默认值: None

wp_create_thumbnail() 参数