If for a some reasons the default cropping options isn’t okay for you, then you change it from within options.php
file. Follow steps:
Step 1
If you’re using a child theme (which is highly recommended), then you have to copy options.php
file from theme folder to the child theme.
Step 2
Find these lines and change the crop options using only true
or false
parameters. After that the future images will be cropped on accordance with new cropping options. If you need to apply the changes to already uploaded images, then you have to regenerate thumbnails using this plugin.
'images' => array( 'thumbnail' => array( 'status' => true, 'width' => 150, 'height' => 150, 'crop' => true, ), 'medium' => array( 'status' => true, 'width' => 300, 'height' => 9999, 'crop' => false, ), 'large' => array( 'status' => true, 'width' => 1200, 'height' => 9999, 'crop' => false, ), 'archive-image' => array( 'status' => true, 'width' => 850, 'height' => 9999, 'crop' => false, ), 'post-image' => array( 'status' => false, 'width' => 679, 'height' => 9999, 'crop' => false, ), 'project-thumb' => array( 'status' => true, 'width' => 262, 'height' => 9999, 'crop' => false, ), 'project-medium' => array( 'status' => true, 'width' => 574, 'height' => 9999, 'crop' => false, ),