Archived topic
Problem with aspect ratio of featured image
12 replies · Started by Kilian on January 26, 2020
I have a problem with the image ratio. In the media library the image is quadratic (1500x1500), but when I insert it into the article and publish it it gets somehow resized into 350x500? I want the image to stay quadratic.
Could you please give me some advice?
Hi there,
Where can I see a featured image?
I don't see one in the URL you've provided and there is nothing on the Blog page either.
Let me know :)
The featured image is the one in the article. I set featured image in the hero element to below title and then cusomized with some css to show it next to the text.
Any chance you can disable Autopimize and the caching plugin(s) you are using?
https://www.screencast.com/t/Uzib9th2j
Let me know :)
oh sorry, should be disabled now
I'm still seeing both Autopimize and W3 Total cache activated currently.
hm weird, i deactivated both plugins now
I'm seeing this CSS here which is likely causing the issue you are referring to?
https://www.screencast.com/t/Rk8h85DsjVg
Nope thats not it. But in the xreenshot you can see the problem: The image ratios are 350x500, but in the media library the image is 1500x1500. Somehow the picture gets cropped to that 350x500 size but i don't know where?
This is the original image: https://images-na.ssl-images-amazon.com/images/I/71UycTruwwL._SL1500_.jpg
I do not change anything when i upload it into the media library. I have no idea where this class "attachement-350x500 size-350x500" comes from?
Hmm from the code it's showing that this is the original image of that featured image:
https://isitketofriendly.org/wp-content/uploads/2020/01/ChocZero-1-350x500.jpg
Is that not in your media library?
in the media library it shows dimensions as "Dimensions: 1500 by 1500 pixels". And that is exactly the image i set as featured image, i do not crop or change anything about the image. Could there be a function somewhere that changes the image?
Ah i found it.
i changed the width and height in Customize -> Layout -> Blog -> Fetaured images -> Posts
Thank you for the help!
No problem :)