Skip to content

Why does the image extension not resize external images? #736

Discussion options

You must be logged in to vote

In short don't do it this way. Resizing external images is not a supported feature.

The reason takes a bit longer to explain. The image extension was made to improve image handling in Markdown. A typical uses case is creating downscaled image thumbnails on your web server for faster page loading time. Another use case is creating cropped image thumbnails on your web server for different aspect ratios, e.g. landscape, portrait, square. For this to work in practice, all images should be stored in your media/images folder.

On the technical side, the HTML img element expects width and height in pixel, no other unit is supported and they are not intended to be used to stretch the image. In the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FlTr
Comment options

Answer selected by FlTr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants