Archived topic
how to adjust image sizes
7 replies · Started by Marco on February 2, 2019
Hello
as I understand we have the following image sizes at our disposal: thumbnail, medium, medium large, and large?
where are those defined - is there a way to enforce a crop on those sizes - the issue I'm having is that I've posts in there columns with the featured image at the top of the posts - however the thumbnails have different heights and that doesn't look good at all - cropping those images to the same size upon adding to the media library doesn't seem practical to me.
Thank you in advance for your input.
Hi there,
Have you tried these options here?
https://docs.generatepress.com/article/adjusting-the-featured-images/
You can specify the height and just leave the width blank to be auto.
Let me know if this helps :)
I'm not sure whether that would work - I guess the height should be different whether I'm showing the posts and two columns vs. three columns - there should be a way to enable cropping on those sizes: thumbnail, medium, medium large, and large upon uploading - I'm sure there is a way we just have to figure out how to do it
It should - you would just have to adjust the px number if you change from 2 columns to 3 columns.
GP itself doesn't handle the uploading picture part. It's all WordPress media library:
https://codex.wordpress.org/Media_Library_Screen
I must be missing something - first of all, I'm using some Gutenberg plugin to show the posts in some responsive columns - I might have 3 columns on the desktop, two on the tablet and one on the phone - the plugin just asks me for the image size with no options to either set the width or the height that's why I'd like to have all my e.g. medium sized images cropped to exactly the same size so the behave equally no matter how I'm showing them
Ahh you never mentioned about using a plugin before.
The plugin likely has their way for sizing images so you will have to check with their support.
doesn't matter whether I use a plugin or not - could also be some custom function - I'm just looking for a way for using e.g. a medium picture that is the same size across all images no matter what size of image gets uploaded to the media library?
Maybe something like this?
https://stackoverflow.com/questions/3725894/how-to-change-default-image-thumbnail-sizes-in-wordpress