Image Render Consistency

When I post images, I prefer to keep them the same width for consistency. To achieve this, I adjust the proportions (width x height).

Even when I specify the image’s proportions, if the image is proportionally tall, Discourse renders it smaller, requiring users to click to view it. I often post screenshots and need the images to display without clicking. Do you have any advice on setting image attributes to prevent Discourse from overriding the image’s rendered size? I know what Discourse is trying to do but at times, I would like more control over how images are rendered.

Thanks again and apologize if this question was asked before.

Sorry there was no response so I’ll do my best to add clarity:

Let’s say I have a variety of images of different sizes, but I want them all the same width:

![image|400x507](upload://1.png)
![image|400x847](upload://2.png)
![image|400x206](upload://3.png)
![image|400x101](upload://4.png)

I specified the width and height attributes to ensure the images are proportional, preventing stretching or clipping. However, larger images are rendered to be shrunk down by Discourse, and very tall images are clipped or visually made much smaller, requiring users to click to view them fully. Is there an attribute that forces the image to render at the specified dimensions?

Figured out the solution (thanks for the help @JammyDodger).

Turns out there is a server setting (which I’m sure everyone here was familiar with):
min ratio to crop

I modified this and disabled thumb-nailing and this did the trick.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.