# How to keep SE from scaling my images?

When I upload an image for a question/answer on SE, the site seems to scale it to fit the standard post width.

Often this is useful since it gives a nice uniform clean look to the post. But sometimes it's annoying, such as when I want to put a small image inline with the text, or if I am trying to put multiple images side by side, or just if my image is too small to be scaled up that much.

Can I keep SE from scaling the images I upload? Or (even better) control the scaling manually?

• Images are never upsampled AFAIK. If your image is smaller than the width of the post, it should work as expected – gandalf3 Jan 28 '16 at 22:12
• @gandalf3 This image is definitely scaled up. – PGmath Jan 29 '16 at 14:19
• It looks like the file itself has been upsampled. Right click > view image shows it just as it appears in the post for me. – gandalf3 Jan 29 '16 at 20:51
• @gandalf3 So you think imgur is scaling the images? – PGmath Jan 29 '16 at 21:02
• idk, that's really odd. I've never seen it do that for me.. – gandalf3 Jan 29 '16 at 21:20
• @gandalf3 It does that to me all the time. I often turn my DPI scaling way up to take screenshots so I can get them higher res to minimize this effect. – PGmath Jan 29 '16 at 21:22
• I don't suppose it's possible your screenshot taking software might be doing this? Can you check if images look upscaled prior to uploading? – gandalf3 Jan 29 '16 at 21:25
• @gandalf3 That's definitely not it I just use good old fashioned print screen and MS paint. And they don't look upsampled before uploading. – PGmath Jan 29 '16 at 21:26

You can specify a height and width by inserting the image via a HTML tag.

2. Copy this line of HTML into the editor and insert the values:

<img src="insertImageLocationHere" width="insertWidthHere" alt="insertAltTextHere">

Notes:

• The attributes MUST be listed in this order
• There is no need to specify a height attribute, it should keep the aspect ratio
• DO NOT include the px extension for the width attribute

Example:

Standard Markdown

HTML tag: <img src="http://i.stack.imgur.com/yoGVY.png" width="500" alt="A wide image">

(not anymore!!)

• What's the alt attribute do? – PGmath Jan 29 '16 at 13:49
• @PGmath you know how in markdown it asks you to insert an image description? Same thing here. The Alt (alternate) text is displayed if the image is not available or if a screen reader is used. – angussidney Jan 29 '16 at 22:18