Resize on upload?
-
Seen this topic addressed numerous times in the forum, but all threads seem to have been closed, so I’m starting a new one…
I’m using NGG for clients that are “salt of the earth” kind of guys, landscapers and air conditioner repair techs. Not to say that everyone in these lines of work are technically non-proficient, but I’m trying to make using NGG as simple as possible. So asking them to either a. re-size their pics before they upload, or b. remember to go back in and resize them from the admin… that ain’t gonna fly.
I’ve seen variations of this solution offered, in various threads…..
- Open ~/wp-content/plugins/nextgen-gallery/admin/functions.php in your favorite text/code editor.
- Search for “// now create thumbnails” should be line 192.
- Insert just above the following code:
// now create resized images foreach($image_ids as $r) { nggAdmin::resize_image ( $r, 0, 0 ); } - Save.
So I’m wondering…
- Will the changes above work with NGG 1.8.2 ?
- Does the solution above resize ALL images to the size set in the NGG options? If so, can it be changed to exempt smaller ones so they don’t get stretched up?
- How can the changes above be implemented to survive plugin updates? Is there a way to work them into the theme folder like the custom album & gallery files?
- Since this is such an oft-asked-for request, can Alex include it into NGG moving forward?
Thanks again for all your work on NGG, Alex!
The topic ‘Resize on upload?’ is closed to new replies.