How to avoid stretching large images in a post
-
My theme has 750 pixels for the main content area (where the posts go). When I upload an image larger than 750, the width is resized to 750 but the height is not and it gets squished. The aspect ratio is no longer correct.
To fix this I’ve been clicking on each image and clicking on the little image icon and then selecting 80% or 60% or whatever. This is inefficient because I can’t know what percentage to use so I have to guess and keep trying until it looks right.
I’d like for my images to be resized automatically. Is this possible? I read about using a
$GLOBALS['content_width'] = 700;
I tried that but it didn’t have any effect.
I’m using a lightbox plugin so once the user clicks on the image it’s shown full size, that’s fine. I’d just like the aspect ratio to be preserved on the page.
Is it possible?
Thanks
- The topic ‘How to avoid stretching large images in a post’ is closed to new replies.