fastfetch icon indicating copy to clipboard operation
fastfetch copied to clipboard

[FEAT] support --logo-width / --logo-height options for image files

Open pmonks opened this issue 1 year ago • 4 comments
trafficstars

Wanted features:

As a user who is providing a random image file from a directory (currently via scripting, until ~~#834~~ #829 is addressed), I want to be able to control the maximum width of the image via the --logo-width and/or --logo-height options, so that large images are scaled down in size, leaving enough room for the system information to be displayed.

Motivation:

Currently --logo-width appears to be ignored for images, so large images can consume up to the entire width of the terminal window, leaving no room for the textual system information to be displayed.

pmonks avatar May 01 '24 18:05 pmonks

Currently --logo-width appears to be ignored for images

It should work with --sixel and --kitty. You may notice text collapse, prefix fastfetch command with clear && can be used as a workaround.

CarterLi avatar May 02 '24 01:05 CarterLi

I'm using --iterm, which may explain why images aren't resized.

pmonks avatar May 04 '24 17:05 pmonks

if you use --iterm, both logo-width and logo-height need to be specified to make it work

CarterLi avatar May 04 '24 17:05 CarterLi

Oh interesting. Is there a way to get proportional scaling by width alone when in --iterm mode, without resorting to calculating width and height externally?

pmonks avatar May 05 '24 05:05 pmonks

Love it! Thank you for working on this!

pmonks avatar May 13 '24 17:05 pmonks