Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1 KB

README.md

File metadata and controls

51 lines (32 loc) · 1 KB

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.