Title: Resize on upload?
Last modified: August 20, 2016

---

# Resize on upload?

 *  [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * (@zoinks)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/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…..
    1. Open ~/wp-content/plugins/nextgen-gallery/admin/functions.php in your favorite
       text/code editor.
    2. Search for “// now create thumbnails” should be line 192.
    3. Insert just above the following code:
    4.     ```
           // now create resized images
           foreach($image_ids as $r) {
           	nggAdmin::resize_image ( $r, 0, 0 );
           }
           ```
       
    5. Save.
 * So I’m wondering…
    1. Will the changes above work with NGG 1.8.2 ?
    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?
    3. 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?
    4. 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!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * (@zoinks)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/resize-on-upload/#post-2190339)
 * Alex, any thoughts on this…?
 *  Thread Starter [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * (@zoinks)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/resize-on-upload/#post-2190372)
 * Okay, I guess Alex snuck this feature in while I wasn’t looking, so I’ll describe
   how to get at it to answer my own question…
 * Gallery / Options/ Images
 * Then check the box at “Automatically resize” and hit the “Save Changes” button
   to automatically resize images on upload.
 * Thanks, Alex, and sorry I missed this!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Resize on upload?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [Zoinks! Graphics](https://wordpress.org/support/users/zoinks/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/resize-on-upload/#post-2190372)
 * Status: not resolved