MLA Image Editor Class for Image Manipulation through Imagick PHP Module
| since | 2.10 |
|---|---|
| package | Media Library Assistant |
| uses | \global\WP_Image_Editor_Imagick |
load() : boolean | \WP_Error
Sets image resolution and frame from $imagick_args before loading the file.
| since | 2.10 |
|---|---|
| access | protected |
boolean\WP_ErrorTrue if loaded; WP_Error on failure.mla_prepare_image(integer $width, integer $height, boolean $best_fit, string $type, integer $quality) : void
| since | 2.10 |
|---|---|
| access | public |
integerzero or new width
integerzero or new height
booleanproportional fit (true) or exact fit (false)
stringoutput MIME type
integercompression quality; 1 - 100
mla_setIteratorIndex(integer $index) : boolean
| since | 2.10 |
|---|---|
| access | public |
integerframe/page number
booleansuccess/failurestream(string $mime_type) : boolean | \WP_Error
| since | 2.10 |
|---|---|
| access | public |
string
boolean\WP_Error
_ghostscript_convert(string $file, string $frame, string $resolution, string $output_type) : boolean
| since | 2.10 |
|---|
stringInput file, e.g., a PDF document
stringPage/frame within the file, zero-based
stringOutput file DPI. Default 72.
stringOutput MIME type; 'image/jpeg' or 'image/png'.
booleantrue if conversion succeeds else false