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
1 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?