_wp_image_editors_filter()
initialize()
_process_mla_stream_image()
$mla_imagick_args
MLA_ADMIN_NONCE
mla_process_stream_image()
_get_temp_file()
_ghostscript_convert()
_mla_die()
_prepare_image()
$image
Class MLA (Media Library Assistant) Stream Image provides PDF thumbnails.
| package | Media Library Assistant |
|---|---|
| since | 2.10 |
_wp_image_editors_filter(array $editors) : void
Requires _wpnonce and mla_stream_file (relative to wp_upload_dir ) in $_REQUEST; optional parameters are: mla_stream_width, mla_stream_height, mla_stream_frame, mla_stream_type
| since | 2.10 |
|---|
arrayList of the implemented image editor classes
initialize() : void
| since | 2.10 |
|---|
_process_mla_stream_image() : void
Requires _wpnonce and mla_stream_file (relative to wp_upload_dir ) in $_REQUEST; optional $_REQUEST parameters are: mla_stream_width, mla_stream_height, mla_stream_frame, mla_stream_resolution, mla_stream_quality, mla_stream_type
| since | 2.10 |
|---|
$mla_imagick_args : array
| since | 2.10 |
|---|
MLA_ADMIN_NONCE : string
| since | 2.10 |
|---|
Class MLA (Media Library Assistant) Stream Image provides PDF thumbnails for the [mla_gallery] mla_viewer.
| package | Media Library Assistant |
|---|---|
| since | 2.10 |
mla_process_stream_image() : void
Requires mla_stream_file (relative to wp_upload_dir ) in $_REQUEST; optional $_REQUEST parameters are: mla_stream_width, mla_stream_height, mla_stream_frame, mla_stream_resolution, mla_stream_quality, mla_stream_type, mla_stream_fit, mla_ghostscript_path
| since | 2.10 |
|---|
_get_temp_file(string $extension) : string
| since | 2.10 |
|---|
stringFile extension for the temporary file
stringWritable path and file name._ghostscript_convert(string $file, string $frame, string $resolution, string $output_type, string $explicit_path) : 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'.
stringNon-standard location to override default search, e.g., 'C:\Program Files (x86)\gs\gs9.15\bin\gswin32c.exe'
booleantrue if conversion succeeds else false_mla_die(string $message, string $title, integer $response) : void
| since | 2.10 |
|---|
stringError message.
stringOptional. Error title. Default empty.
integerOptional. HTML response code. Default 500.
_prepare_image(integer $width, integer $height, boolean $best_fit, string $type, integer $quality) : void
| since | 2.10 |
|---|
integerzero or new width
integerzero or new height
booleanproportional fit (true) or exact fit (false)
stringoutput MIME type
integercompression quality; 1 - 100
$image : \Imagick
| since | 2.10 |
|---|