Is it possible to insert an image in comments? if the answer is "yes", then how?

  • $\begingroup$ As far as I know, it's not possible. Why would you want to do that? $\endgroup$ Jul 31, 2014 at 14:31
  • 1
    $\begingroup$ Not possible: See here $\endgroup$ Jul 31, 2014 at 14:33
  • $\begingroup$ for example in math.stackexchange.com/questions/882836/… i wanted to import a pic. of the new edition of book, for thebowler_300 to see if i am right about question? $\endgroup$
    – user147308
    Jul 31, 2014 at 14:34
  • $\begingroup$ You can put the picture in your answer, if you think it's important. $\endgroup$ Jul 31, 2014 at 14:37
  • $\begingroup$ thank you again but it is not part of answer $\endgroup$
    – user147308
    Jul 31, 2014 at 14:38
  • $\begingroup$ Well, then just link to the image as described in what I linked to. $\endgroup$ Jul 31, 2014 at 14:39
  • 4
    $\begingroup$ $\style{ display: inline-block; background: url(//i.stack.imgur.com/UFoAJ.jpg?s=48&g=1) no-repeat center;}{\phantom{\Rule{48px}{48px}{0px}}}$ it is possible. (this at least render properly in firefox28). $\endgroup$ Aug 1, 2014 at 17:38
  • $\begingroup$ how??????????????!!!!!!!!! $\endgroup$
    – user147308
    Aug 1, 2014 at 17:40
  • 3
    $\begingroup$ the \style command from MathJAX extension HTML. Move your mouse over the icon, right click over it to see the commands. I don't recommend using this at all as I don't believe this works correctly over all browser. I just want to show there are a lot of hidden possibilities in the technology SE is using. $\endgroup$ Aug 1, 2014 at 17:48
  • $\begingroup$ thanks. about your last statement, I agree. $\endgroup$
    – user147308
    Aug 2, 2014 at 5:51
  • $\begingroup$ @achillehui Based from here, do you see this in the below comment? If not, how would one use the \style command on mobile? $\endgroup$ Dec 11, 2022 at 1:10
  • $\begingroup$ $\lower{30pt}{\style{height: 100px; content: url(i.stack.imgur.com/Ttmig.png)}{ {~\over~}\over}} $ $\endgroup$ Dec 11, 2022 at 1:10
  • $\begingroup$ @TymaGaidash I didn't see anything. If you are able to see the image in my comment posted at 2014. Move the mouse over that image, right click and Select Math As > Tex Commands to see the mathjax needed to display the image. $\endgroup$ Dec 11, 2022 at 2:07

1 Answer 1


The most you can do is provide a link to the image. Comments are not meant to take up a lot of space, and one thing that pictures tend to do is take up space. However, it's common enough that comments may contain the need to reference images in order to help clarify or expand on the point they are making. So simply linking to the images is perfectly fine.

If you do not yet have the image uploaded online, you can still upload it directly through us. Just open a post editor (if you didn't ask the question or yet write an answer on the page you're commenting on, you'll have one already open at the bottom of the page, otherwise you can use the Ask Question button in the top right), and click on the Image button on the toolbar. You can then upload to imgur through us, and then copy the URL from the post body to use in your comment as you see fit.


You must log in to answer this question.