Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

When uploading an image, the markdown inserted should be changed from

![alt text][1]

<a href="">![alt text][1]</a>

This will be most helpful when images are wider than 630px, allowing the viewer to remove the distortion inherent in scaled images.

share|improve this question
Not sure why this is not part of the feature, but it sure would be nice! – Nate Mar 8 '12 at 19:30

While it would be nice if it was done automatically, it's easy to link the image to itself:

share|improve this answer

Some thoughts if this gets implemented:

  • For the data dumps, maybe rewriting the images needs to be done when generating the HTML, not in the Markdown code itself? (Just like when rendering bare URLs into clickable links with a full title, or when using [tag:tag-name].)

  • Some users very nicely link cropped images to full versions, or link images to web pages. It would be nice if that is still possible. (So, automatic linking should be smart to detect that.)

  • Maybe the (bottom) link border can be removed/changed in the CSS?

  • Maybe large images can be shown in a smaller size right away? Like if the height exceeds some limit, then set it:

    <a href="">
        <img src="" 
        height="100" alt="alt text" title="Click to enlarge"></a>

    Image upload dialog

    Or better yet: truly resize the image, as requested in Embed smaller version of images from to reduce traffic.

  • Maybe the alt text and optional title can be prompted for as well? Too many images simply have the default "alt text", which is not helping the visually impaired. And sane browsers will not display the alt text in a tooltip, so asking for both alt text and optional title might be nice?

    [![alt text](]( "Title")

    In the alternative syntax, using the very same [x] reference twice, is currently automatically changed into two different [x] and [y] references when adding a new link or image using the toolbar. Hence when really changing the Markdown text source (rather than when generating the HTML, which I'd vote for), then I guess two references need to be inserted when using the alternative syntax:

    [![alt text][1]][2]
    [1]: "Title"
    [2]: "Title"
share|improve this answer

You must log in to answer this question.

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