From 4eaa1c89aefb4ebb0cc5aa40613a555e6d250ed0 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sat, 16 Feb 2019 17:54:22 +0000 Subject: Add customisable image resizing behaviour Two new flags: -w and -W enable resizing and recentering, respectively. Also add an 'autoresize' config variable to control this behaviour. Fixes #122 --- doc/imv.1.txt | 6 ++++++ doc/imv.5.txt | 5 +++++ 2 files changed, 11 insertions(+) (limited to 'doc') diff --git a/doc/imv.1.txt b/doc/imv.1.txt index 07167fd..6c2b45c 100644 --- a/doc/imv.1.txt +++ b/doc/imv.1.txt @@ -60,6 +60,12 @@ Options *-u* :: Set upscaling method used by imv. +*-w*:: + Enable automatic resizing of the window to fit each image. + +*-W*:: + Enable automatic resizing and recentering of the window to fit each image. + *-x*:: Disable looping of input paths. diff --git a/doc/imv.5.txt b/doc/imv.5.txt index 36be08d..e323995 100644 --- a/doc/imv.5.txt +++ b/doc/imv.5.txt @@ -24,6 +24,11 @@ Options The *[options]* section accepts the following settings: +*autoresize* = :: + Sets the resizing behaviour when changing image. 'none' does nothing, and + is the default. 'resize' will resize the window to fit the image. + 'recenter' will resize and recenter the window. + *background* = :: Set the background in imv. Can either be a 6-digit hexadecimal colour code, or 'checks' for a chequered background. Defaults to '000000' -- cgit v1.2.3