Skip to content

Commit

Permalink
chafa: Implement --exact-size
Browse files Browse the repository at this point in the history
Fixes #119 (GitHub).
  • Loading branch information
hpjansson committed Jan 2, 2024
1 parent 68e0fd4 commit 3fa6c31
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 66 deletions.
12 changes: 12 additions & 0 deletions docs/chafa.xml
Expand Up @@ -137,6 +137,18 @@ Clear screen before processing each file.
</para></listitem>
</varlistentry>

<varlistentry>
<term><option>--exact-size <replaceable>mode</replaceable></option></term>
<listitem><para>
Try to match the input's size exactly [on, off, auto]. When on, this will
override other sizing options and produce output images at the exact pixel size
of the inputs. In auto mode, scaling will be avoided (in exchange for padding)
if the output size is equal to or slightly bigger than the input. When off,
padding will never be added, and the image is scaled to fit the containing
cell extent. Defaults to auto.
</para></listitem>
</varlistentry>

<varlistentry>
<term><option>--fit-width</option></term>
<listitem><para>
Expand Down

0 comments on commit 3fa6c31

Please sign in to comment.