-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[suggest] add a option to output original size #1
Comments
Can you please elaborate on this? Currently we take the image shape into consideration to determine the height to display image with. |
the behavior of this package is different with original imgcat. the programming interface def imgcat(data, filename=None,
width=None, height=None, preserve_aspect_ratio=True,
pixels_per_line=24,
fp=None) It is hard to output original size if some one want to output original size, he must spec pixels_per_line with a 'right' value. the cmd interface usage: imgcat [-h] [--height HEIGHT] [--width WIDTH] [-v] [input [input ...]]
imgcat in Python.
positional arguments:
input Path to the images.
optional arguments:
-h, --help show this help message and exit
--height HEIGHT The number of rows (in terminal) for displaying images.
--width WIDTH The number of columns (in terminal) for displaying images.
-v, --version show program's version number and exit is even harder. He must get image size in pixel and div with 24. |
@wookayin Are you open to a pull request for this? |
The text was updated successfully, but these errors were encountered: