Title: Adding other image sizes
Last modified: August 21, 2016

---

# Adding other image sizes

 *  [jereader](https://wordpress.org/support/users/jereader/)
 * (@jereader)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/)
 * I have tried to add more image sizes like so:
 *     ```
       public function menu_image_init() {
               add_image_size('menu-128x128', 128, 128);
           }
       ```
   
 * The new sizes show in the menu, but the images are not resized on output. What
   am I missing?
 * [http://wordpress.org/plugins/menu-image/](http://wordpress.org/plugins/menu-image/)

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

 *  [zviryatko](https://wordpress.org/support/users/zviryatko/)
 * (@zviryatko)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4110999)
 * Hi
 * If you added images size after uploading images you need to regenerate thumbnails
   of images, use [regenerate-thumbnails](http://wordpress.org/plugins/regenerate-thumbnails/)
   plugin.
 * But if you uploaded image after adding image sizes and its not resizing, check
   the size of the image, it should be greater than 128×128.
 *  [Institute11](https://wordpress.org/support/users/institute11/)
 * (@institute11)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4111052)
 * Where to you add that code exactly? What particular file?
 *  Thread Starter [jereader](https://wordpress.org/support/users/jereader/)
 * (@jereader)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4111053)
 * menu-image/menu-image.php
 * Go to plugins > editor
 *  [zviryatko](https://wordpress.org/support/users/zviryatko/)
 * (@zviryatko)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4111055)
 * oh, don’t hack the core and plugins!
 * Please, read [documentation](http://codex.wordpress.org/Function_Reference/add_image_size#Examples).
 * > A theme’s **functions.php** file. `
   >  if ( function_exists( ‘add_image_size’)){
   > add_image_size( ‘category-thumb’, 300, 9999 ); //300 pixels wide (and unlimited
   > height) add_image_size( ‘homepage-thumb’, 220, 180, true ); //(cropped) } `
 *  Thread Starter [jereader](https://wordpress.org/support/users/jereader/)
 * (@jereader)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4111056)
 * I plan to reuse this plugin in other sites with different themes, so for me it
   makes sense to mod the plugin so I don’t have to keep adding the function to 
   themes over and over, but yes, for single use, that would be the correct way 
   to do it. Thanks zviryatko.
 * Have you thought about releasing a premium version with more features?

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

The topic ‘Adding other image sizes’ is closed to new replies.

 * ![](https://ps.w.org/menu-image/assets/icon-128x128.png?rev=2123398)
 * [Menu Image, Icons made easy](https://wordpress.org/plugins/menu-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/menu-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/menu-image/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-image/reviews/)

## Tags

 * [menu images](https://wordpress.org/support/topic-tag/menu-images/)

 * 5 replies
 * 3 participants
 * Last reply from: [jereader](https://wordpress.org/support/users/jereader/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/adding-other-image-sizes/#post-4111056)
 * Status: not resolved