atanunq / viu

Terminal image viewer with native support for iTerm and Kitty
MIT License
2.57k stars 58 forks source link

maintain aspect ratio when -w and -h are supplied #55

Closed Jab2870 closed 3 years ago

Jab2870 commented 3 years ago

Hi, I'd like to be able to print an image to the terminal that maintains aspect ratio that is, say 100 characters tall or wide, whichever is larger.

Is this something you'd consider implementing?

atanunq commented 3 years ago

Hi! Unfortunately, to me this sounds like a pretty niche requirement. Also, IMO, the current behaviour is more intuitive and doing something like this would hurt the UX. Do you think you can solve the issue on your side? Get the image's dimensions and do a check to figure out on which axis to scale? Then you can use either -w or -h, but not both.

atanunq commented 3 years ago

Please feel free to reopen if you think there should be changes on viu's side.