I’ve set up Discourse using the recommended Docker setup. However, I’m having trouble with images. The forum is going to be used for illustrations and graphics often, and we ran into some problems with images that have transparent margins. It seems the margins get cut off, and the image gets resized (via height/width attributes) according to what the aspect ratio was before the crop.
I’ve attached two images. One is a screenshot of how it looks, the second one is the original image. Interestingly enough, if I remove the
width="500" attributes from the
<img> tag, the image is not squished anymore, but still has the borders cut off, which I don’t want. Is there a setting somewhere for that behaviour or is it something ImageMagick does on its own?
edit: I see that on this installation, the borders don’t get cut off. Any explanation as to why?