Last active
October 12, 2015 18:38
-
-
Save DrewAPicture/4070273 to your computer and use it in GitHub Desktop.
Enable and set plupload scaling dimensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function plupload_scaling( $defaults ) { | |
$defaults['resize'] = array( | |
'width' => 1024, | |
'height' => 1024, | |
'quality' => 100 | |
); | |
return $defaults; | |
} | |
add_filter( 'plupload_default_settings', 'plupload_scaling' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment