[wp-trac] [WordPress Trac] #38994: Plupload update to version 2.2.1
WordPress Trac
noreply at wordpress.org
Wed Nov 30 12:37:00 UTC 2016
#38994: Plupload update to version 2.2.1
-------------------------+-----------------------------
Reporter: virgodesign | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Upload | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Hi,
a few days ago was released to the public the plupload version 2.2.1
(https://github.com/moxiecode/plupload/releases).
This release ships with an important enhancement related to image resize
on client size: the bilinear resampling.
As they said: ''Improved quality for client-side image resizing (bilinear
resampling)''
This improvement let people resize images before upload on media library,
but, this time, without loosing quality and colors.
This could be done in wordpress using the following filter
{{{
function resize_image_on_client_size( $defaults ) {
$defaults['resize'] = array(
'width' => 1600,
'height' => 900,
'quality' => 80,
'crop' => false
);
return $defaults;
}
add_filter( 'plupload_default_settings', 'resize_image_on_client_size' );
}}}
with this filter any user can resize images before upload them in the
media library.
In these years we assisted to an incredible growth of powerful electronic
devices (camera and smartphones) that captures images to high resolutions.
images are becaming always bigger and bigger, and this could be a chance
for users to start using an important feature such as image resize on
client size.
I hope I've explained well this suggestion, and I hope this will take in
consideration for the next wordpress release (4.7).
Thanks in advance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38994>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list