WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way out to create additional thumbnails of custom size in nextgen gallery while uploading images? For example I would like to create 3 thumbnails of size 25*30, 100*50, and 400*350 to display them in certain custom pages.Or can i add custom code to resize when image upload is triggered and if so where?

share|improve this question

closed as off-topic by Howdy_McGee, TheDeadMedic, Pieter Goosen, Mayeenul Islam, ialocin May 3 '15 at 14:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

Make shure your theme function have

add_theme_support( 'post-thumbnails' );

to add a custom image size use

add_image_size( 'thumb-one', 25, 30 );

for more details have a looh here

share|improve this answer
1  
but how will this thumbnail get generated while uploading while nextgen gallery ? – user7282 Mar 7 '13 at 11:10

If you want to write a custom function to re-size the thumbnails you need to have a look at gd.thumbnail.inc.php in the lib folder of the plugin. This is where the thumbnails are generated.

Alternatively you can create custom a template for displaying different thumbnail sizes.

If you have a look in the view folder anyone of those files will give you a clue as to how to create a template for the plugin.

Once you create a template you can display it with a shortcode like [ nggallery id=X template=your_template ]

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.