WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

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
Active Installs: 1,000+

Ratings

3 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