1050
votes
Accepted
Why should I not upload images of code/data/errors when asking a question?
You should not post code (or error/exception messages, log files, configuration files, project files, or anything else that is represented in textual form) as an image because:
Code or sample data in ...
Community wiki
657
votes
Accepted
How to reduce image size on Stack Overflow
Add a character to the file name to specify a size
If the images are hosted on the Stack Exchange imgur.com account (which most are), you can add a h, l, m, t, b or s to the filename in the URL (...
158
votes
Accepted
Should we display a warning when users include images?
Perhaps a more in your face "Don't do this" would work with the image upload dialog:
Ps this is only a semi-serious suggestion, as I doubt even something this drastic would make any difference if it ...
154
votes
Discourage screenshots of code and/or errors
If you are asking a question about an error or code, it needs to be in there as text otherwise it won't be searchable for other users.
I think screenshots of errors and code can be useful but only ...
100
votes
Why should I not upload images of code/data/errors when asking a question?
The first reason is that links to images fail.
The second reason is that text on images is not searchable.
The third reason is that it gives you an incentive 'not to try'; simply show us a screenshot ...
Community wiki
100
votes
Accepted
Why aren't my gifs animating?
You're using the large image modifier by appending an l to the end of the image ID in your path:
https://i.stack.imgur.com/c81Vkl.gif
^
Imgur only supports animations ...
91
votes
Accepted
Should we edit a question to transcribe code from an image to text?
I, personally, feel that we should not be editing a post to transcribe code in an image into text. Some of these reasons have already been touched on in the other answers, such as:
Could introduce ...
90
votes
Accepted
The yellow star in the sprites.svg image looks "unfinished"
Eww, that looks as if somebody just took a bitmap image and fed it through a vector tracer without bothering to check the results (or redraw it properly).
Here's a nice hand-optimized pair of SVG ...
87
votes
Ban ImageShack Images
The situation is now much worse. ImageShack is not only deleting old images, it's reusing some of the deleted image URLs for advertisements. I just had to edit the images out of two different posts ...
85
votes
Accepted
Discourage screenshots of code and/or errors
This has been implemented network-wide. When a user has <= 15 rep, they will see a message in the image uploader that says:
Images are useful in a post, but make sure the post is still clear ...
72
votes
Can we disallow the default alt text for images?
Accessibility is a major issue, but it is not that simple to ensure users are entering meaningful alt text. I would prefer that it is explained why it is important, but not required, to avoid users ...
70
votes
Accepted
Why are there so many incorrectly inserted images on Stack Overflow?
Two reasons:
This is how the image upload tool inserts images for new users
On some sites, where images are considered critical to being able to ask a good question, new users are allowed to insert ...
65
votes
Accepted
Should I review questions with images of code as "looks ok" or "requires editing"?
Neither of the options you are considering.
If there are pictures of code instead of code, the question should be closed.
The most appropriate reason would be:
"Requires editing" is when someone ...
63
votes
How to reduce image size on Stack Overflow
You can use the HTML <img> tag, instead of [enter image description here][1]. To do that, copy and paste this:
<img src="" width="" height="">
Then put the URL of the picture in the src ...
58
votes
Raise / Remove reputation limit for showing "Do not upload code screenshots" message
To illustrate what we're talking about, it's the yellow banner visible on this capture, only for people with less than 15 reputation:
And yes, this banner has likely not been noticed enough when you ...
57
votes
How do I upload an image of an R plot without losing its quality?
JPEG is notorious for compression like this:
(image from the link above)
Since JPEG encourages compression like this, the uploader takes advantage of it.
I'd recommend splitting the plots up into ...
UndoMod
- 25.4k
56
votes
Accepted
Why can't users with less than 10 reputation points add images while asking question?
This question is probably more interesting than you realized when you asked it. About a year ago, we looked at every single image that was blocked due to this restriction (we log each incident), and ...

Tim PostMod
- 32.8k
55
votes
Accepted
Is it OK to re-upload externally hosted images on Stack Overflow's imgur?
Is it OK to edit direct imgur links to i.stack.imgur ones without notifying OP or should I just see the image myself and move on?
Yes, this is fine. There should only be a few old posts that you will ...
Cody GrayMod
- 232k
52
votes
Accepted
Why is this question prompting me for a username and password?
There were two old image links in that question. Whatever they originally linked to is lost to time; now they're broken, and the server they were hosted on is asking for credentials.
I've removed the ...
51
votes
If images are blocked for me, should I Skip or Delete image-only answers?
You cannot see the full post, but you want to judge it? That's risky. Skip would be the safer option. Especially since there are enough reviewers in other countries where the full posts are shown. ...
50
votes
Accepted
What's the function of the image description?
The "enter image description here" is used to fill the alt text of the inserted image. While this text isn't shown if the image loads normally, it is useful in several cases:
For users of assistive ...
47
votes
Where are new users supposed to learn that they should show code and error messages as text, not as images?
Everything you said is true, but it's actually worse than that: some of the features intended to improve question quality are actually causing users to post images of code.
I've had at least one user ...
Ryan MMod
- 15.9k
44
votes
How to make images stand out when posting images with whitespace?
I was inspired to write this question because of a neat trick gnat used on one of my answers to solve this problem.
You can just put the image inside a blockquote. This will add a nice shaded ...
44
votes
Accepted
How to get all the images posted by me?
This SEDE query gives you links to all your posts with images in it and produces html markup to quickly show all those images in an html page, or in this case, simply in this answer:
select '<hr>...
42
votes
Animated GIFs in answers
We are trying to build a repository of quality questions and answers. Everything that distracts from that is noise and should be removed.
Your GIF image was such noise. It was nothing more than a an ...
41
votes
Ban ImageShack Images
UPDATE (October 9): We've received 6 images from ImageShack since the warning has been in place (and 2 of them were edited in after the fact, so they didn't see the warning). We've also made some ...
41
votes
If images are blocked for me, should I Skip or Delete image-only answers?
Answer a simple question:
Is the answer still useful if all links and images suddenly die?
If yes, the post is, at a minimum, an OK one (you might want to skip to avoid approving an irrelevant or ...
41
votes
Should we edit a question to transcribe code from an image to text?
No, it is clear from the tutorial and help pages that code and data must be in text form, so that it can be reproduced.
So close these questions for a lack of details.
39
votes
Where are new users supposed to learn that they should show code and error messages as text, not as images?
For the sake of science, I just created a new account (lucky I have a work mail ;)). When asking a new question the modal shown is:
Which only says "When appropriate, show some code", but ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
images × 168discussion × 53
support × 49
feature-request × 49
bug × 38
status-completed × 14
markdown × 12
image-upload × 9
edits × 8
design × 8
hyperlinks × 6
editor × 6
status-bydesign × 5
new-users × 5
questions × 4
answers × 4
code-formatting × 4
stack-overflow-for-teams × 4
code × 4
ssl × 4
imgur × 4
comments × 3
suggested-edits × 3
asking-questions × 3
profile-page × 3