Class MLA (Media Library Assistant) Image Processor provides PDF thumbnails for the [mla_gallery] mla_viewer and Media/Assistant thumbnail generator.
| package |
Media Library Assistant |
|---|---|
| since | 2.10 |
_get_temp_file(string $extension = '.tmp') : 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 |
|---|---|
| uses |
loads the converted file to this Imagick object |
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'.
stringOptional. Non-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_debug_add(string $message)
| since | 2.12 |
|---|---|
stringError message.
_mla_die(string $message, string $title = '', integer $response = 500) : void
| since | 2.10 |
|---|
stringError message.
stringOptional. Error title. Default empty.
integerOptional. HTML response code. Default 500.
_mla_error_return(string $message, string $line = '') : \array(
| since | 2.10 |
|---|
stringError message.
stringOptional. Line number in the caller.
\array('error' => message )
_prepare_image( $width, $height, $best_fit, $type, $quality) : void
| since | 2.10 |
|---|---|
| uses |
updates the image in this Imagick object |
mla_handle_thumbnail_sideload(string $input_file, array $args) : array
Replaces download_url() in the Codex "Function Reference/wp handle sideload" example.
| since | 2.13 |
|---|
stringPath and name of the source file relative to upload directory
arrayGeneration parameters
arrayfile attributes ( 'file', 'url', 'type' ) on success, ( 'error' ) on failure
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 |
|---|---|
mla_debug : boolean
| since | |
|---|---|
| var |
boolean
image : \Imagick
| since | |
|---|---|
| var |
\Imagick