Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Convert images to character art with support for multiple character sets and formats
Convert images to character art with support for multiple character sets and formats.
pip install img-characterize
Convert a single image:
img-characterize -i image.jpg -s ascii
Convert multiple images:
img-characterize -i image1.jpg image2.png -s emoji --color
Convert all images in a directory:
img-characterize -i ./images/ -s chinese --color --optimize
from img_characterize import convert_image
# Simple conversion
output_path = convert_image(
"input.jpg",
"output",
character_set="ascii"
)
# Advanced options
output_path = convert_image(
"input.jpg",
"output",
character_set="emoji",
detail_level=15,
complexity=20,
color_mode=True,
subdivide=True,
optimize=True,
empty_char=True,
output_formats=["png", "txt"]
)
-i, --input
: Input image files or directories-s, --character-set
: Character set to use (default: ascii)
-d, --detail-level
: Detail level (character size in pixels, default: 12)-c, --complexity
: Number of different characters to use (default: 12)--color
: Enable color output--subdivide
: Subdivide large images--optimize
: Optimize output files--empty-char
: Include empty character for darker areas-f, --formats
: Output formats (png, jpg, txt)Each character set has different characteristics suitable for different types of images:
ascii
: Good for general use, wide brightness range (2-81)emoji
: Best for color images, largest brightness range (31-173)chinese
: Excellent detail, wide range (0-107)braille
: Compact representation, small range (3-18)numbers
: Clean look, moderate range (21-43)roman
: Serif style, good contrast (27-81)git clone https://github.com/kodu-ai/img-characterize.git
cd img-characterize
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows
pip install -e ".[dev]"
pytest tests/
cd docs
make html
MIT License - see LICENSE file for details.
Font Not Found
Memory Issues
Quality Issues
FAQs
Convert images to character art with support for multiple character sets and formats
We found that img-characterize demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.