I wasn't sure if this would be "desired" functionality for all images so I didn't modify img tags to do this, I created new ones. As you can see it also automatically links the larger version of the image, meaning that you only need to do:
[img]image url here[/img]
and the user will see the shrunk version with the option to click to see the full.
img:
- Embeds image at 100% width
simg:
- Shrinks image to a maximum width of 600px
- Automatically links to the larger version
and that will produce:
vs normal img tags, which make:
I wasn't sure if this would be "desired" functionality for all images so I didn't modify img tags to do this, I created new ones. As you can see it also automatically links the larger version of the image, meaning that you only need to do:
and the user will see the shrunk version with the option to click to see the full.
img:
- Embeds image at 100% width
simg:
- Shrinks image to a maximum width of 600px
- Automatically links to the larger version
Pikachu by @apofiss.deviantart.com
Makes everything easier and a lot more enjoyable.
Great work!
Thanks citricsquid.