aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsmcv <smcv@web>2014-07-11 18:33:38 -0400
committeradmin <admin@branchable.com>2014-07-11 18:33:38 -0400
commit14fb2ba91f744732303e5ed96ffeb625aeef03b4 (patch)
tree03815149b992905b106e010bf913c97b5daa3c94 /doc
parentbb94da88c4db4e3942794e789c28145b5d27fd85 (diff)
downloadikiwiki-14fb2ba91f744732303e5ed96ffeb625aeef03b4.tar
ikiwiki-14fb2ba91f744732303e5ed96ffeb625aeef03b4.tar.gz
clarify which case fails
Diffstat (limited to 'doc')
-rw-r--r--doc/bugs/image_rescaling_distorts_with_small_pictures.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/bugs/image_rescaling_distorts_with_small_pictures.mdwn b/doc/bugs/image_rescaling_distorts_with_small_pictures.mdwn
index c535f88a4..6eff2df07 100644
--- a/doc/bugs/image_rescaling_distorts_with_small_pictures.mdwn
+++ b/doc/bugs/image_rescaling_distorts_with_small_pictures.mdwn
@@ -1 +1,12 @@
If you use the rescaling feature of the directive [[ikiwiki/directive/img/]] with a smaller image it will distort. E.g. an image with 150x250 rescaled into size=200x200. --bastla
+
+> More specifically: `img` normally preserves aspect ratio:
+> `size=200x200` normally means "as large as possible, keeping
+> the width 200px or less, the height 200px or less, and the
+> aspect ratio correct". So a 4:3 image with `size=200x200`
+> would actually come out 200px wide and 150px tall.
+>
+> However, when (desired width is specified) && (desired height is specified)
+> && ((width > desired width) || (height > desired height)),
+> it uses exactly the desired size, without preserving aspect ratio.
+> --smcv