What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

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

![alt text][1]

..to..

<a href="http://i.stack.imgur.com/vwxyz.png">![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
1  
Not sure why this is not part of the feature, but it sure would be nice! –  Nate Mar 8 '12 at 19:30

2 Answers 2

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

[![](http://i.stack.imgur.com/vwxyz.png)](http://i.stack.imgur.com/vwxyz.png)
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="http://i.stack.imgur.com/xx.png">
        <img src="http://i.stack.imgur.com/xx.png" 
        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 imgur.com 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](http://i.stack.imgur.com/xx.png)](http://i.stack.imgur.com/xx.png "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]: http://i.stack.imgur.com/xx.png "Title"
    [2]: http://i.stack.imgur.com/xx.png "Title"
    
share|improve this answer

You must log in to answer this question.

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