WordPress.org

Make WordPress Core

Opened 12 months ago

Closed 3 months ago

Last modified 3 months ago

#38994 closed enhancement (wontfix)

Update Plupload to version 2.X

Reported by: virgodesign Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Upload Keywords:
Focuses: Cc:

Description

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.

Change History (3)

#1 @joshcummingsdesign
6 months ago

Bumping because plupload 2.1.8 has known vulnerabilities.

According to retire.js:

"plupload 2.1.8 has known vulnerabilities: severity: medium; CVE: CVE-2016-4566; https://github.com/moxiecode/plupload/releases"

Newest version is now 2.3.1.

Last edited 6 months ago by joshcummingsdesign (previous) (diff)

#2 @Presskopp
6 months ago

  • Summary changed from Plupload update to version 2.2.1 to Update Plupload to version 2.X

#3 @azaozz
3 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Unfortunately Plupload version 2.2.x and newer are released under the AGPL version 3 license which is incompatible with GPLv2.

We can update to the latest GPL Plupload, version 2.1.9. See #41755.

Last edited 3 months ago by azaozz (previous) (diff)
Note: See TracTickets for help on using tickets.