How to both crop (with tool) and resize thumbnails having only a max width constrain?

I’ve been able to get the thumbs both correctly cropped and 400px. What I can’t get is a thumb less than 400px (I’ve setted that width in the media options).

In other words, WordPress always set the thumb to 400px, despite of how I edited the images. I would like it to consider 400px only the max width instead, so I can edit and image to to have the thumbnails cropped (I mean with the edit tool) and resized say, to 320px.

Another way to say it: I want WordPress to serve the thumbnails 400px width only if I didn’t resized them less than 400px.

Is there any way to do it?

Related posts

1 comment

  1. From my understanding on how WordPress crops, it’s not going to stretch your image to a certain size, so if you upload an image that is 300px wide, it isn’t going to stretch the image to 400px, it will keep that width and proportionally create a height. Make sure that

    Crop thumbnail to exact dimensions (normally thumbnails are
    proportional)

    is checked in the media section of your settings. If you’re looking for new image sizes you can use add_image_size().

    If you want to size down an already created thumbnail, you can click the image to edit it (inside the tinyMCE) and size it down there. You will be given percentages and a little box on how it might look inside your content.

Comments are closed.