Image Render Consistency

AI-generated summary

The discussion revolves around Image Render Consistency. catchthewavecoke seeks advice on how to prevent Discourse from overriding the specified size of images, particularly when posting screenshots that need to display without requiring a click. They want to maintain a consistent width for images, but Discourse shrinks or clips taller images.

To illustrate the issue, catchthewavecoke provides examples of images with varying heights but the same width, and asks if there’s an attribute that forces images to render at the specified dimensions.

Ultimately, catchthewavecoke finds the solution by modifying the min ratio to crop server setting and disabling thumbnailing, which resolves the issue.

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.