byterep

command module
v0.0.0-...-21ccb9a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 8 Imported by: 0

README

ByteRep

This is a simple command-line tool for encoding and decoding images to and from bytes, with an option to display images on the command-line using Unicode characters.

Installation

Clone the repository and build the executable:

git clone https://github.com/ccianos/byterep.git
cd byte-representation
go build -o byterep

Usage

Encode an Image

Encode an image to bytes:

./byterep -encode -input input_image.jpg > encoded_image.txt
Decode an Image

Decode bytes to an image:

./byterep -decode -input encoded_image.txt > decoded_image.jpg
Display an Image using Unicode

Display an image using Unicode characters:

./byterep -decode -input encoded_image.txt

Options

  • -encode: Encode the input image to bytes
  • -decode: Decode the encoded data and display the image
  • -input: Input file path
  • -help: Show help message

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL