can this question be added to the faq, please?

i've spent several hours looking for the answer -- i know it's there, because i happened on it a couple of months ago, but didn't record its location. a search on "upload image" has turned up 56 items, but in none of the questions is it obvious that it contains the answer i'm looking for.

i have now found two questions, Where should images go? and Style of typesetting images in questions/answers, that contain a relevant link, but it took reading through a couple dozen items that were irrelevant, or, more frustratingly, say that the facility exists via imgur. since i remembered from the earlier encounter that just uploading to imgur isn't enough, since "unprotected" postings there fall off the end of the earth after some length of time, just knowing that imgur is involved isn't enough. also frustrating is the suggestion in the question What goes in the FAQ? that "... whatever the image storage solution ends up being, we should have the recommended behavior mentioned in the FAQ." but nothing has happened, although it seems the facility became available in august 2010.

  • 1
    You can upload images using CTRL+G or clicking the image icon (the one looking like a photograph) above the text field. Commented Jan 3, 2012 at 21:13
  • 6
    @Martin -- yes, i've figured that out now. but i'm not the world's most successful gui user (i "grew up" with punched cards, and am really far more comfortable with a command line). i still think that a quick overview in the faq -- and maybe a graphical/schematic intro to all the various "buttons" that can be pushed on the important pages of the site -- would be useful to newbies or old fogies like myself. Commented Jan 3, 2012 at 21:23

1 Answer 1


When you ask a question by clicking on the Ask Question link in the TeX.SE banner:

enter image description here

or edit an existing question, the post header or toolbar will include the available (basic) formatting options. By clicking the Image <img> Ctrl+G button Insert image button or by pressing Ctrl+G allows you to select an image for upload to stack.imgur.com - the image hosting platform (pronounced like image-er; imager) for the Stack Exchange network:

enter image description here

This will bring up the Insert an image dialog within the question body, where you can select an image to be uploaded "from my computer" or "from the web" (via a web link):

enter image description here

Some browsers allow you to drag-and-drop images, while others allow you to copy-and-paste an image from the clipboard (as shown in the above dialog). Whether you upload an image from your local (computer) or a remote (the web) location, the image will be uploaded to i.stack.imgur.com, and displayed in your post as:

![enter image description here][#]

Now you can do as it says and enter [an] image description here. This goes in the alt attribute of the resulting img tag so is useful for text browsers (including screen readers and search engines) or people viewing the page on a slow connection. The accompanying number cites the appropriate reference at the bottom of the post, where you will also see the stack.imgur.com image link. These numerals are used by default, but can be modified as well, as long as the cited numeral is changed as well.

Why should one use this approach?

Submission using this method has been available since August 2010 and is the preferred way to upload images. Using any other method (for example, manual upload) would cause the images to be removed over time. Also, linking to an external web image is not preferred, since future image removal on the linked site would leave a broken link on TeX.SX.

I'm being told that I cannot insert an image. What now?

New or low-reputation users are unable to post images; a privilege available to users with at least 10 reputation. Note: you are able to upload images, just not post them - there is a difference. As such, upload the image as usual and remove the preceding !. Other community members and moderators with edit privileges will be able to revert the removal of ! in order to embed the image in your post. That is, leave your uploaded image in the following format in your post

[Your image description](https://i.sstatic.net/)

The "site janitors" will clean this up very quickly.

I've uploaded an image, now I'd like to crop it. Is that possible?

You should either re-upload a cropped version of the image, or you could use imgur.com's website to crop an image. For more information, see How do you crop an attached PDF?

What image types are supported for upload?

The following file types are uploadable (as per the imgur FAQ): JPEG, GIF, PNG, APNG, TIFF, BMP, PDF, XCF (GIMP). Note that the TIFF, BMP, PDF and XCF formats will be converted to PNG on upload.

I have a large-format image that I want to upload. Is there a limit?

The display engine of the Stack Exchange network shrinks the image to fit within the horizontal boundary of the post, regardless of its size. However, there is a file limit. According to the imgur FAQ:

The maximum non-animated file size you can upload is 10MB. However, if the image is over 1MB then it will automatically be compressed or resized to 1MB, for better viewing on the net. The maximum animated file size (both GIF and PNG) is 2MB.

The downsized display of my large-format image is suboptimal. How do I display it at 100% zoom?

If the original uploaded image is not resized at upload, you can link to it. This would allow users to view it at full resolution in their browser (or elsewhere). Here's how: Assuming that you uploaded an image

![A picture that is quite large][7]

you could make it a hyperlink by using the StackExchange markdown

[![A picture that is quite large][7]][7]

Can I add tooltip text to my uploaded image?

Yes. Specify this in quotes after the image link, at the bottom of the post:

[8]: https://i.sstatic.net/aBcDe.png "Your tooltip text"

Can I change the size of images after I've uploaded them?

Somewhat. After uploading an image, let's assume the URL provided is

[8]: https://i.sstatic.net/aBcDe.png

This URL represents the image in its uploaded format, which could be large (up to 2MiB). You can scale it down within the post by adding a suffix m (for medium) or s (for small):

[9]: https://i.sstatic.net/aBcDem.png "Medium version"
[10]: https://i.sstatic.net/aBcDes.png "Small version"

As an example, consider this tiger:

enter image description here

enter image description here

enter image description here

Reference: Resizing an image in a post?

What about comments? Can I insert an image into a comment?

Yes, but there's no direct way to do this as comments are considered transitory and therefore temporary in nature. You'll have to (open up a new browser tab and) "Ask [a] Question", insert your image using the above steps and then copy-and-paste the link for the image into your comment.

  • 1
    What happened to the PDF upload? It seemed to have been possible (that's also what I remember), but not anymore? See also this question.
    – quazgar
    Commented Oct 12, 2018 at 7:24
  • Note that you will need to have javascript enabled in your browser for the "drag-and-drop" box to show up.
    – codeMonkey
    Commented Apr 29, 2022 at 8:46

You must log in to answer this question.

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