cosmopolitan/tool
William Chargin 0272f638a5
printimage: keep aspect ratio when scaling to fit (#479)
When `printimage` is invoked without `-w` or `-h`, we now preserve the
aspect ratio of each input image when scaling it to fit in the window.
A new flag `-i` ignores the aspect ratio, recovering the old behavior
when neither `-w` nor `-h` is passed. When `-i` is passed alongside
exactly one of `-w` or `-h`, the other dimension is just taken from the
window size, ignoring aspect ratio.

We also unconditionally print a newline between images to prevent them
from overlapping.

wchargin-branch: printimage-fit
wchargin-source: 4c2cfcffe9ce1a3b30c0ff051e3c6a2c166ae1c7
2022-07-11 15:58:21 -07:00
..
args Make some systemic improvements 2022-05-18 16:52:36 -07:00
build Make some minor fixups to bug reporting, etc. 2022-07-11 05:58:24 -07:00
decode Make some quick fixes and cleanup 2022-06-26 02:58:36 -07:00
emacs Make redbean serialization deterministic 2022-07-09 04:09:51 -07:00
hash Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
lambda Make build hermetic without shell scripts 2022-05-25 13:55:57 -07:00
net Reduce JSON depth limit to 128 (#477) 2022-07-11 10:23:44 -07:00
plinko Make more fixes and improvements 2022-06-13 11:02:13 -07:00
scripts Get codebase completely working with LLVM 2021-02-09 02:57:32 -08:00
viz printimage: keep aspect ratio when scaling to fit (#479) 2022-07-11 15:58:21 -07:00
tool.mk Make fixes and improvements 2022-06-18 01:46:12 -07:00