How to force crop to exact dimensions for medium size image resize?
-
Under dashboard > settings > miscellaneous settings > image sizes one can specify the width and height of thumbnails generated automatically by the media library and tick a checkbox to “Crop thumbnail to exact dimensions (normally thumbnails are proportional)”
you can also specify the max width and max height of the ‘medium size’ images similarly autogenerated, but you can’t check a box to force the cropping in the same way.
I’m inside wp-includes/media.php trying to hack this change, to force the cropping of the resized ‘medium size’ version of an uploaded image to the max width and max height specified in this part of the admin page but am not getting it to work – has anyone done this and can let me know how or could take a quick look at the file and see if s/he can figure out how to do it?
Thanks
- The topic ‘How to force crop to exact dimensions for medium size image resize?’ is closed to new replies.