posva / catimg

🦦 Insanely fast image printing in your terminal
http://posva.net/shell/retro/bash/2013/05/27/catimg
MIT License
1.4k stars 57 forks source link

width (-w) handling depending on resolution #47

Closed boretom closed 5 years ago

boretom commented 5 years ago

Hi,

I'm playing around with catimg (the c app, not the script) and don't fully understand the width (-w) parameter.

Especially I don't see why setting the resolution to 1 or 2 has an impact on the image width. The terminal width (tput cols) is the same in both scenarios, no? Is it supposed to behave like that?

/Thomas

posva commented 5 years ago

the resolution makes one pixel span over two characters or not. then the width uses that count, so -r 1 will produce a larger image. In other words, the width isn't in terms of columns but rather in term of rendered pixels

boretom commented 5 years ago

Ok, I see. Thanks for clarifying it ... it's quite confusing but nevermind