53

I was wondering if it is possible to post a comment with an image.

Recently, during a question about data-visualization in Cross Validated, there was a controversy about using one type of chart for another.

I had posted a question about pie-charts, after reading some references I decided to build an example and clarify the point of using waffle-chart vs pie-chart. In a way, my example was not an answer it was more properly a comment on waffle-charts. But it seems to be impossible to post a comment with an image (Maybe, there is a way but I can't figure out how).

I don't know if it is relevant to post images in comments in other SO sites. So, if there is no way to post images in comments... why not making it possible? And if there is a way to post an image with a comment, how I can do it?

4
  • 6
    Well, you can just use imgur.com and upload the images manually then post a link to it in the comments, or if you find the discussion dragging out too long use chat instead. Otherwise, no, its not possible
    – Yi Jiang
    Mar 31, 2011 at 17:05
  • 3
    I'd rather use the Markdown editor to automatically upload images to the SE-provided Pro account, @Yi, and then copy the imgur.com URL into the comment. That ensures the image won't be deleted after some time.
    – Arjan
    Mar 31, 2011 at 17:10
  • @Yi Jiang and @Arjan, thanks for your comments. I found them very useful! That seems to solve my problem.
    – deps_stats
    Mar 31, 2011 at 18:26
  • 7
    Why the downvotes? This is a support question not a feature-request. Mar 31, 2011 at 19:20

2 Answers 2

23

You can't (see How do comments work?). The only formatting allowed in comments is things that change a single line (bold, code, etc.). Things that take up multiple lines aren't available, because comments don't span blocks like posts do. Along the same thinking, comments have a fairly low character limit. All of this serves to keep comments compact; adding images lets you make huge comments, and posts can have dozens or hundreds of comments:

Screenshot of the horror

If you really need an image, just link to it in the comment and people can click through

13
  • 5
    Also, images would allow for HUGE text!
    – Arjan
    Mar 31, 2011 at 17:12
  • 5
    +1 for hypothetically showing the images in comments ;) Mar 31, 2011 at 17:12
  • 2
    But who would put unicorns in the comments?? who would do something like that?
    – Trufa
    Mar 31, 2011 at 17:30
  • 5
    Feature request right now
    – Pekka
    Mar 31, 2011 at 17:31
  • 2
    @Pekka Granted. Only for unicorns. Mar 31, 2011 at 18:22
  • 1
    @Arjan i.imgur.com/X35E6.png
    – jjnguy
    Mar 31, 2011 at 19:23
  • 2
    @jjnguy so.mrozekma.com/jeff/… Mar 31, 2011 at 19:33
  • @Michael, haha. Great pic.
    – jjnguy
    Mar 31, 2011 at 20:03
  • 1
    I thought that Stackexchange discourages the use of links to externally saved files?
    – Karlo
    Jan 19, 2016 at 13:29
  • 1
    @Karlo not in comments Mar 28, 2017 at 21:35
  • @ShadowWizard They were probably referring to the image that was hosted on my domain up until a half hour ago Mar 28, 2017 at 21:44
  • @MichaelMrozek oh, in the answer itself? I see. Thanks for fixing! Mar 28, 2017 at 22:03
  • You are right, big images would just be very obtrusive in comments. When the images become very small, they're just going to have symbolic meaning 🦄, so emojis work fine for that
    – bobobobo
    Nov 21, 2019 at 12:21
20

A work around is to start a new answer or question, use the image upload button to get the images into the stakcoverflow imgur account, then take the links and link to the images from your comments. Discard the answer or question you started.

6
  • 4
    That CAN'T be allowed! But I love it. Can you show me a link to where you've done this or seen this done?
    – alex gray
    Mar 19, 2013 at 6:10
  • 1
    I think that's exactly what was done under my answer, by Fibbles, right here: stackoverflow.com/questions/32281191/…. It worked great, so I think it absolutely should be allowed. Him doing that was very helpful for me, and then I went ahead and added his image into my answer. Sep 11, 2015 at 19:42
  • 1
    8 years on. Edit the question, copy the imgur link, exity the edit with no changes, use the link. Sep 12, 2019 at 5:49
  • It certainly works if you actually let the answer post, then delete it: stackoverflow.com/questions/61071004/… It didn't actually occur to me to take the links while editing and then discard. TIL! Apr 7, 2020 at 1:17
  • better to use imgur.com IMHO why overload S.E. ? Feb 7, 2021 at 18:26
  • February 2021: just did this for my comment to the question here, by pasting the picture in the answer box to get the link. Posted the comment, refreshed the page just to check, works perfectly! Feb 11, 2021 at 10:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .