Closed AlanDeSmet closed 5 years ago
The aspect ratio of images is preserved in thumbnail mode.
I extracted the resizing logic for full mode and put it in place for thumbnail mode.
Should resolve https://github.com/stefanhaustein/TerminalImageViewer/issues/48
I'm happy to follow just about style. :-)
252455f changes size::operator* to size::scaled and moves fit_within to size::fitted_within, with *this being the size to be refitted within the target size.
size::operator*
size::scaled
fit_within
size::fitted_within
*this
The aspect ratio of images is preserved in thumbnail mode.
I extracted the resizing logic for full mode and put it in place for thumbnail mode.
Should resolve https://github.com/stefanhaustein/TerminalImageViewer/issues/48