$mla_debug
$mla_debug : boolean
Log debug information if true
Class MLA (Media Library Assistant) Image Processor provides PDF thumbnails for the [mla_gallery] mla_viewer and Media/Assistant thumbnail generator.
mla_handle_thumbnail_sideload(string $input_file, array $args) : array
Process Imagick thumbnail conversion request, e.g., for a PDF thumbnail
Replaces download_url() in the Codex "Function Reference/wp handle sideload" example.
string | $input_file | Path and name of the source file relative to upload directory |
array | $args | Generation parameters |
file attributes ( 'file', 'url', 'type' ) on success, ( 'error' ) on failure
mla_process_stream_image() : void
Process Imagick image stream request, e.g., for a PDF thumbnail
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
_ghostscript_convert(string $file, string $frame, string $resolution, string $output_type, string $explicit_path = '') : boolean
Direct Ghostscript file conversion
string | $file | Input file, e.g., a PDF document |
string | $frame | Page/frame within the file, zero-based |
string | $resolution | Output file DPI. Default 72. |
string | $output_type | Output MIME type; 'image/jpeg' or 'image/png'. |
string | $explicit_path | Optional. Non-standard location to override default search, e.g., 'C:\Program Files (x86)\gs\gs9.15\bin\gswin32c.exe' |
true if conversion succeeds else false