Hi, I've a little script that uses NextGenGallery /wordpress system and outputs thumbnails of a post. I use custom fields to attach thumbnail to a post and than call it in template via: <?php query_posts('cat=35,147&showposts=6&order_by=date&order=DESC'); if (have_posts()) : while (have_posts()) : the_post(); $text = get_the_content(); $primary = get_post_meta($post->ID, 'primary'); $primary = $primary[0]; $do_not_duplicate[$post->ID] = $post->ID; //image size $w = 131; $h = 223; ?> <li> <div class="descrpt slideright"> <?php $img = nggSinglePicture($primary,$w,$h); //missing: class="cover" from image to make sliding cover work! echo strip_tags($img,'<img>'); ?> <h4><a href="<?php the_permalink() ?>" rel="<?php _e("bookmark"); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4> <p><? echo get_the_excerpt(); ?></p> </div> </li> <?php $i++; endwhile; endif; wp_reset_query(); ?> Code (markup): $w = 131; $h = 223; I require this width and height for my new wp template. But instead NextGen outputs resized image of 131*202. This is because original images uploaded are 156*240 and nextGen doesn't crop it just retains proportion and resizes image. I need it to do cropping instead so my layout doesn't break. I NEED HELP let me know.
well dear y dont u use featured image function and set the size of that image from settings?? i guess it will work check it out ..