convert images to ansi or irc, with a bunch of post-processing filters

Related tags

Command-line img2irc
Overview

img2irc (0.2.0)

img2irc preview

img2irc is a utility which converts images to halfblock irc/ansi art, with a lot of post-processing filters

halfblock means that each row will contain two rows worth of pixels, effectively doubling the resolution

the irc mode has 99 colours, the ansi mode has 256, ansi24 has 16777216

usage

./img2ansi <URL or PATH> [OPTIONS]

option description default value
<IMAGE> image url or file path none
-r, --render <RENDER> render type (irc, ansi, ansi24) irc
-w, --width <WIDTH> output image width in columns 50
-b, --brightness=<BRIGHTNESS> adjust brightness (-255 to 255) 0
-H, --hue=<HUE> adjust hue (-180 to 180) 0
-c, --contrast=<CONTRAST> adjust contrast (-255 to 255) 0
-s, --saturation=<SATURATION> adjust saturation (-255 to 255) 0
-o, --opacity=<OPACITY> adjust opacity (-255 to 255) 0
-g, --gamma=<GAMMA> adjust gamma (-255 to 255) 0
--dither <DITHER> dithering (1 to 8) 0
--pixelize <PIXELIZE> pixelize pixel size 0
--gaussian-blur <GAUSSIAN_BLUR> gaussian blur radius 0
--oil <OIL> oil ("[RADIUS],[INTENSITY]")
--grayscale converts image to black and white
--halftone made up of small dots creating a continuous-tone illusion
--sepia brownish, aged appearance like old photographs
--normalize adjusts brightness and contrast for better image quality
--noise random variations in brightness and color like film grain
--emboss gives a raised, 3d appearance
--box-blur smoothed appearance like frosted glass
--identity no modifications, unchanged image
--laplace enhances edges and boundaries in an image
--noise-reduction reduces noise for a cleaner, clearer image
--sharpen increases clarity and definition, making edges and details more distinct
--cali cool blue tone with increased contrast
--dramatic high contrast and vivid colors for a dramatic effect
--firenze warm, earthy tones reminiscent of tuscan landscapes
--golden warm, golden glow like sunset light
--lix high-contrast black and white appearance with increased sharpness
--lofi low-fidelity, retro appearance like old photographs or film
--neue clean, modern appearance with neutral colors and simple design
--obsidian dark, monochromatic appearance with black and gray shades
--pastel-pink soft, delicate pink tint like pastel colors
--ryo bright, high-contrast appearance with vivid colors and sharp details
--invert colors are inverted, opposite on the color wheel
--frosted-glass blurred, frosted appearance as if viewed through semi-transparent surface
--solarize strange, otherworldly appearance with inverted colors and surreal atmosphere
--edge-detection highlights edges and boundaries in an image
You might also like...
Terminal text styling via ANSI escape sequences.
Terminal text styling via ANSI escape sequences.

Iridescent Features iridescent is a library for styling terminal text easily. It supports basic ANSI sequences, Xterm-256 colors, and RGB. You can ope

A Supra + Pandoc post-processor for footnote cross-references.

AutoCref AutoCref is a Supra and Pandoc post-processor that turns footnote cross-references in a Word document into automatically updated fields. Abou

Command-line HTTP client for sending a POST request to specified URI on each stdin line.

line2httppost Simple tool to read lines from stdin and post each line as separate POST request to a specified URL (TCP connection is reused though). G

100% stream-based O(n) syntax highlighter for ANSI terminal
100% stream-based O(n) syntax highlighter for ANSI terminal

Lex-highlighter 100% stream-based $\mathcal O(n)$ syntax highlighter for ANSI terminal Warning This is proof-of-concept implementation and WON't be co

Allows processing of iterators of Result types

try-continue try-continue provides one method, try_continue, which allows you to work with iterators of type ResultT, _, as if they were simply iter

Simple, extensible multithreaded background job processing library for Rust.
Simple, extensible multithreaded background job processing library for Rust.

Apalis Apalis is a simple, extensible multithreaded background job processing library for Rust. Features Simple and predictable job handling model. Jo

Concurrent and multi-stage data ingestion and data processing with Rust+Tokio

TokioSky Build concurrent and multi-stage data ingestion and data processing pipelines with Rust+Tokio. TokioSky allows developers to consume data eff

Rust Imaging Library's Python binding: A performant and high-level image processing library for Python written in Rust

ril-py Rust Imaging Library for Python: Python bindings for ril, a performant and high-level image processing library written in Rust. What's this? Th

Background task processing for Rust applications with Tokio, Diesel, and PostgreSQL.
Background task processing for Rust applications with Tokio, Diesel, and PostgreSQL.

Async persistent background task processing for Rust applications with Tokio. Queue asynchronous tasks to be processed by workers. It's designed to be

Owner
null
Rust library to convert RGB 24-bit colors into ANSI 256 (8-bit) color codes with zero dependencies and at compile-time.

rgb2ansi256 rgb2ansi256 is a small Rust library to convert RGB 24-bit colors into ANSI 256 (8-bit) color codes with zero dependencies and const fn. Th

Linda_pp 7 Nov 17, 2022
Rust-clippy - A bunch of lints to catch common mistakes and improve your Rust code

Clippy A collection of lints to catch common mistakes and improve your Rust code. There are over 450 lints included in this crate! Lints are divided i

The Rust Programming Language 8.7k Dec 31, 2022
Librarian runs pre-configured commands against a group of files that match a set of filters

Filesystem Librarian Librarian runs pre-configured commands against a group of files that match a set of filters. The group of files is called a libra

Jason Rogena 10 Dec 25, 2022
A simple CLI tool to convert the images to ASCII art with rust 🦀💙

aarty: A simple CLI tool to convert images to ASCII art with Rust ?? More screenshots Original image Original image Original image Original image Orig

Anas Elgarhy 26 Feb 13, 2023
Convert your favorite images and wallpapers with your favorite color palettes/themes

dipc doprz' image palette converter Convert your favorite images and wallpapers with your favorite color palettes/themes Color Palettes/Themes catppuc

null 50 Apr 26, 2023
A simple Node.js library to convert raster images into svg

@neplex/vectorizer A simple Node.js library to convert raster images into svg using VTracer, with time complexity of O(n). Installation npm install @n

Neplex 21 Dec 28, 2023
Rust library for ANSI terminal colours and styles (bold, underline)

rust-ansi-term This is a library for controlling colours and formatting, such as red bold text or blue underlined text, on ANSI terminals. View the Ru

Benjamin Sago 407 Jan 2, 2023
A dead simple ANSI terminal color painting library for Rust.

yansi A dead simple ANSI terminal color painting library for Rust. use yansi::Paint; print!("{} light, {} light!", Paint::green("Green"), Paint::red(

Sergio Benitez 169 Dec 25, 2022
Build terminal dashboards using ascii/ansi art and javascript

blessed-contrib Build dashboards (or any other application) using ascii/ansi art and javascript. Friendly to terminals, ssh and developers.

Yaron Naveh 15k Jan 2, 2023
Rust crate to enable ANSI escape code support on Windows.

enable-ansi-support: Enable ANSI escape code support on Windows 10 About This crate provides one function, enable_ansi_support, which allows ANSI esca

Rain 9 Nov 18, 2022