[wp-trac] [WordPress Trac] #21407: Allow filtering of upload resize dimensions
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 28 18:00:20 UTC 2012
#21407: Allow filtering of upload resize dimensions
--------------------------+-----------------------------
Reporter: DrewAPicture | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 3.4.1
Severity: normal | Keywords: has-patch
--------------------------+-----------------------------
Background:
Plupload ships with a client-side upload resizer that was included with
Core in 3.3 but had the action removed because of
[http://core.trac.wordpress.org/ticket/19174 browser inconsistencies] so I
implemented it as [http://wordpress.org/extend/plugins/enable-image-
scaling-option-on-upload/ a plugin] at the time. Everything works just
fine and dandy with zero problems except that the `resize_height` and
`resize_width` vars are defaulted to the Large image sizes defined in
media settings. It would be nice to be able to filter one or both of the
dimensions outside the scope of the 'Large' size (when 'Original' becomes
the same size as 'Large', you effectively lose an image size).
Patch attached.
You'll have to re-add this action to test:
`add_action( 'post-upload-ui', 'media_upload_max_image_resize' );`
Related: #19174, #19770
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21407>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list