Hallo!
This already works without any additional parameter!Hi, I would like to be able to preserve image aspect ratios. I was thinking the syntax would look as follows:
{{image.png?200x200&ratio}}
This would work as following: A 400x200 image would end up as 200x100. A 200x400 image would end up as 100x200. A 50x100 image would end up as 100x200.
If the link was: {{image.png?200&ratio}}
Then the image would resize only using the width, and preserve the height aspect ratio.
> {{image.png?200x200&ratio}} > A 400x200 image would end up as 200x100. Here your base is the width. > A 200x400 image would end up as 100x200. Here it is the height. > A 50x100 image would end up as 100x200. And here the height again.
Confusing ...
With the current DokuWiki syntax you would write:
> A 400x200 image would end up as 200x100. {{image.png?200}} > A 200x400 image would end up as 100x200. {{image.png?100}} > A 50x100 image would end up as 100x200. {{image.png?100}}
Anika -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist