blueimp/jQuery-File-Upload — Issue #937: suggestion: add new option to PHP handler
Author: elastic-od
Created: 2012-01-13 17:49:36+00:00
State: open

blueimp,

I suggest to add new option in PHP handler for 'image_versions' => array( 'large', 'thumbnail');
It should be a string and contain a type of image, for example: 'jpg', 'png'... etc.
The uploaded image will be saved with filetype according to this option.

I have already partially carried out this problem, but I think it will be useful also for other people. Besides it is heavy for me to execute this task on 100 % with your script.

Example:

INPUT_IMG: 'pic.gif';

$this->options = array(
...
'image_versions' => array(
'large' => array(
...
'type' => 'jpg'
...
),
'large' => array(
...
'type' => 'jpg'
...
),
'thumbnail' => array(
...
'type' => 'png'
...
)
)
);

INPUT_IMGs:
'files/pic.jpg';
'thumbnails/pic.png';

P.S. Thanks for the great script!