Skip to main content

Convert XBin images to PNG or to terminal

Project description

xbin_render

Render XBin (.XB) images to PNG or to terminal. XBin files are similar to ANSI-art images, as they consist of characters on a background, with 16 colors.

Install

pipx install xbin_render

Usage

Show on terminal

xbin_render file.xbin

Convert to PNG

xbin_render file.xbin --output-image file.png

Format

The spec is at https://www.acid.org/images/0896/XBIN.TXT but it's incomplete as it relies on knowledge on VGA, etc.

Limitations

The format supports custom fonts, which cannot be rendered easily on a terminal (converting to ressembling characters could be done though). Rendering to PNG without a custom font is not implemented yet.

What about .ANS/.ASC files?

In a color-capable terminal: iconv -f cp437 MYFILE.ANS

License

xbin_render is licensed under the WTFPLv2.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xbin_render-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xbin_render-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file xbin_render-0.1.0.tar.gz.

File metadata

  • Download URL: xbin_render-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for xbin_render-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5293482fe78ea90a4062536c3a56f03e7d44e8081f938b859510bd8805b79a74
MD5 49ea0005354ef63f414d68f36058fc6b
BLAKE2b-256 487d0f92a054425b3a4847f1056383bb30815a24b7cd7fb4b106ee0d38816c9b

See more details on using hashes here.

File details

Details for the file xbin_render-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: xbin_render-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for xbin_render-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db286c9bd79f089a29c05f35c9d25bbb29813555fb77fc6599e75ccac5e75098
MD5 e94029d1d919e94117d0606d0f32d53f
BLAKE2b-256 cbd070d383a9b1763784d83f873103c67cb4c1186399127f5c6895acdd318b0a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page