Linux command
jp2a 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Convert image to ASCII
jp2a [image.jpg]
Set output width
jp2a --width=[80] [image.jpg]
Colored ASCII
jp2a --colors [image.jpg]
Invert colors
jp2a --invert [image.jpg]
Custom characters
jp2a --chars="[.:-=+*#%@]" [image.jpg]
Output to file
jp2a [image.jpg] --output=[output.txt]
说明
jp2a converts JPEG images to ASCII art. It maps pixel brightness to characters for text-based display. The tool supports color output for terminals. It can process multiple images and URLs.
参数
- --width _N_
- Output width in characters.
- --height _N_
- Output height.
- --colors
- Use ANSI colors.
- --invert
- Invert brightness.
- --chars _STRING_
- Character ramp to use.
- --output _FILE_
- Output file.
- --help
- Display help information.
FAQ
What is the jp2a command used for?
jp2a converts JPEG images to ASCII art. It maps pixel brightness to characters for text-based display. The tool supports color output for terminals. It can process multiple images and URLs.
How do I run a basic jp2a example?
Run `jp2a [image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --width _N_ do in jp2a?
Output width in characters.