Make combinations of :width/:max-height image specs work reliably
commitae56c9674b4668ded392c66d46aa22db902ddd71
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jul 2017 00:45:19 +0000 (15 02:45 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 15 Jul 2017 00:48:17 +0000 (15 02:48 +0200)
tree3472b1e2c5877ee37a0b4813f60bc2b2b5515d47
parent89c5d59280edaf89b959597a39d848b54c36975a
Make combinations of :width/:max-height image specs work reliably

* doc/lispref/display.texi (ImageMagick Images): Document
:width/:max-height combinations (etc) (bug #25583).

* src/image.c (compute_image_size): Handle :width/:max-height
(etc) combinations consistently (by letting "max" win and
preserve ratio).

* test/manual/image-size-tests.el (image-size-tests): Add
tests for :width/:max-height (etc) combinations.
doc/lispref/display.texi
etc/NEWS
src/image.c
test/manual/image-size-tests.el