How do you add a screenshot image to your Stack Overflow question?
-
2How is this a duplicate? I can see how it's related and relevant for OP, but it's not the same question.– wjandreaCommented Jul 29 at 16:43
-
2Better duplicate target: meta.stackoverflow.com/questions/267479/how-to-upload-an-image– Abdul Aziz BarkatCommented Jul 29 at 16:51
-
@AbdulAzizBarkat aside from the voting, I feel like this version is more up-to-date and better written.– Karl KnechtelCommented Jul 29 at 19:43
-
2Why should I not upload images of code/data/errors?– philipxyCommented Jul 29 at 23:16
Add a comment
|
1 Answer
In your toolbar when typing/editing a question you just click the button above (typical image-button with landscape in a frame), then simply drag to upload a picture, or paste the URL to one if you're hosting it elsewhere.
You can also type the following to embed an image. The syntax is called Markdown. Here is more information to help you with the formatting
[![image description][1]][1]
[1]: https://i.sstatic.net/f7zys.png
-
9This also works then
![](https://i.sstatic.net/f7zys.png)
. Commented Apr 22, 2021 at 7:16 -
5@Friedrich's comment is great, but note that adding 'alternative text' in [] is kind toward people who use assistive technology (or need translation). So if only you can always describe the photo in a few words, like this:
![description what is in the picture](https://i.sstatic.net/f7zys.png)
– drpaweloCommented Jun 16, 2022 at 15:25 -
Just note that there must be a blank line between the markdown shown and other content– RolandCommented Dec 17, 2023 at 0:10
-
2You don't have to search for and find that button. All you have to do is (when you are logged in) make sure the cursor is in the text field (where you write the question), copy the image (when making screenshot) and paste it Commented Jul 5 at 13:18