When creating thumbnails for my blog, I typically use a size of 100 * 60. But there are times when I want to use square images instead.
Is there a way to adjust the size using a Wordpress plugin or CSS so that it maintains the original image ratio by adding background in the sides?
For example:
- Original image size : 120 x 120
- Adding extra white/transparent background to make it fit the thumbnail ratio : 200x120 by adding 40 pixels on both the right and left of the original image to center it
- Then reducing the image size from 200*120 to 100*60.