WP_Image_Editor_GD
class WP_Image_Editor_GD
// Constructor: function Object() { [native code] } WordPress Image Editor Class for Image Manipulation through GD
Methods 17 methods
| Method / Return | Description |
|---|---|
| __destruct() void | No description available. |
| test() bool | Checks to see if current environment supports GD.
Parameters: $args: mixed |
| supports_mime_type() bool | Checks to see if editor supports the mime-type specified.
Parameters: $mime_type: mixed |
| load() (true | Loads image from $this->file into new GD Resource. |
| update_size() true | Sets or updates current image size.
Parameters: $width: mixed, $height: mixed |
| resize() (true | Resizes current image.
Parameters: $max_w: mixed, $max_h: mixed, $crop: mixed |
| _resize() (resource | No description available.
Parameters: $max_w: mixed, $max_h: mixed, $crop: mixed |
| multi_resize() array | Create multiple smaller images from a single source.
Parameters: $sizes: mixed |
| make_subsize() (array | Create an image sub-size and return the image meta data value for it.
Parameters: $size_data: mixed |
| crop() (true | Crops Image.
Parameters: $src_x: mixed, $src_y: mixed, $src_w: mixed, $src_h: mixed, $dst_w: mixed, $dst_h: mixed, $src_abs: mixed |
| rotate() (true | Rotates current image counter-clockwise by $angle.
Parameters: $angle: mixed |
| flip() (true | Flips current image.
Parameters: $horz: mixed, $vert: mixed |
| save() (array | Saves current in-memory image to file.
Parameters: $destfilename: mixed, $mime_type: mixed |
| _save() (array | No description available.
Parameters: $image: mixed, $filename: mixed, $mime_type: mixed |
| set_quality() (true | Sets Image Compression quality on a 1-100% scale. Handles WebP lossless images.
Parameters: $quality: mixed, $dims: mixed |
| stream() bool | Returns stream of current image.
Parameters: $mime_type: mixed |
| make_image() bool | Either calls editor's save function or handles file as a stream.
Parameters: $filename: mixed, $callback: mixed, $arguments: mixed |
Properties
| Property / Type | Description |
|---|---|
| $image mixed public | No description available. |