Provides the ability to set a maximum width or height an uploaded image can be, if the image is larger than the specified values then it resized. Ideal for users who wish to upload multiple files without having to resize them via Photoshop or GIMP first.
Download
http://downloads.wordpress.org/plugin/resize-on-upload.zip
Installation
- Extract the contents of resize-on-upload.zip and upload to the wp-content/plugins folder.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- ???
- Profit.
Changelog
18/07/2009 inital source added
Jonas Nordström 11:51 am on August 4, 2009 Permalink |
The plugin doesn’t work for images that are smaller than the max dimensions.
I think you forgot to check if the dimensions are smaller than maximum and a call to image_resize is performed for all images no matter how small.
The problem is that even though image_resize doesn’t resize the smaller images, it does return false, not “new_path”, and the plugin renames image file name to “new_path” for every image.
John 9:10 pm on August 4, 2009 Permalink |
That should be fixed, would help if commit the changes to the correct repository. Thanks for the feed back, let me know if its still knackered.
Jonas Nordström 6:32 am on August 5, 2009 Permalink |
Thank you, it works great now! I laughed out loud at the code comment:
// ok actually check the size of the image and not just
// ignore it like….
Simon 12:20 am on September 18, 2009 Permalink |
Hi John
I’d love to give this plugin a try but I couldn’t spot a download link anywhere??
Cheers.
John 12:29 am on September 18, 2009 Permalink |
The plugin is hosted via wordpress (http://wordpress.org/extend/plugins/resize-on-upload/) you should be able to find it though the add plugin section of the admin interface of wordpress.
ligar 8:47 pm on October 4, 2009 Permalink |
I want to use this in wordpress MU.
I will not show plugin section of the admin to my MU Users.
Please help
John 9:01 pm on October 4, 2009 Permalink |
If you comment out the line (should be the last line in resize-on-upload.php)
add_action(‘admin_menu’, array(‘ROU_Admin’,'add_config_page’));
This will stop the config page from being displayed. Although the plugin hasn’t been testing in the MU version so I’m not sure if it’ll work.
ligar 8:35 am on October 5, 2009 Permalink |
Thank you, Jhon
I try it.
ligar 1:21 pm on October 5, 2009 Permalink |
I can use this in my MU 2.8.4.
Thank you so much !!!
thomas 9:39 pm on January 5, 2010 Permalink |
hi john,
would be great if you can integrate the resize inputs at the upload site instead an own config page below the Options – you know: just to make it easier to handle the resize size individuel.
I also don’t need those thumbnails (150×150) – and would get the chance to quit these pics also.
But thanx anyhow for this plug, helps me to avoid all these uneeded middle and big pics into my upload folder.
cheers
thomas