Giter Site home page Giter Site logo

zebbeni / ansizalizer Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 52.42 MB

A TUI to convert Images to ANSI strings using bubbletea

Home Page: https://zebbeni.itch.io/ansizalizer

License: MIT License

Go 100.00%
ansi-art ascii ascii-art bubbletea image-to-ascii image-to-text text-user-interface

ansizalizer's Introduction

ANSIZALIZER

A TUI to convert Images to ANSI strings using bubbletea

Screenshot 2024-04-02 150412

Features

  • A keyboard-navigable Text-based UI
  • File browser: Search .png and .jpeg image files and preview in real-time
  • Export ANSI image strings to '.ansi' text files or copy directly to your Clipboard
  • Save files individually or Batch Process All Images in a chosen directory
  • Browse Lospec.com for cool color palettes

Render Options

  • Set output Width and Height of rendered text images (in characters)
  • Choose character sets to use in output (ASCII, Unicode, or Custom)
  • Render images with "true" colors or convert using Limited Color Palettes
  • Generate new color palettes by sampling previewed image files
  • Use Advanced settings to tweak pixel Sampling mode and Dithering options

Screenshot 2024-04-02 155820

To Run

(On Windows)

go install
go build
start ansizalizer.exe

Screenshot 2024-04-02 155006

FAQ / Troubleshooting

Q: The UI isn't rendering correctly

Check your default console appearance settings. Make sure your chosen font, font size, and line height aren't the cause of the problem. 'DejaVu Sans Mono' works well for me on Windows.

Q: My images look squashed / stretched

Try adjusting the value of Char Size Ratio under Settings > Size. Depending on what font your console uses, your characters may have a width-to-height ratio different than 0.5.

Q: My exported .ansi files take up more space than the original image

The ANSI code that produces the text-rendered images isn't (currently) optimized for file size. If using this tool to batch process lots of text art for use in a game or application, I'd consider compressing the resulting text files and decompressing them as needed.

ansizalizer's People

Contributors

zebbeni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

simulot

ansizalizer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.