WordPress.org

Ready to get started?Download WordPress

Plugin Directory

NextGEN Image Cropper

NextGEN Image Cropper extends the NextGen Gallery plugin to allow cropping of images.

Q: How could I automatically set the cropping dimensions based on my theme (for a homepage slideshow for instance)?

A: The plugin options are stored as a site option array called 'ngg_crop'. You can set the cropping dimensions by adding these lines to your functions.php file in your theme directory.

 // Set the dimensions of the Home Page slideshow
 $ngg_crop = array();
 $ngg_crop['crop_width']    =   400;
 $ngg_crop['crop_height']   =   400;
 $ngg_crop['imagesize'] =   500;

 update_option('ngg_crop', $ngg_crop);

Requires: 3.3 or higher
Compatible up to: 3.5.2
Last Updated: 2013-2-26
Downloads: 9,811

Ratings

3 stars
3.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
0,2,0
0,3,0
0,1,0