Skip to content

A simple command-line tool to encode JPEGs as XLSX files, where each pixel's RGB values are encoded using three cells' background colors, similar to how screens display images.

License

Notifications You must be signed in to change notification settings

haroun-b/jpeg-to-xlsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JPEG To XLSX

A simple command-line tool to encode JPEGs as XLSX files, where each pixel's RGB values are encoded using three cells' background colors, similar to how a screen would display an image.

Motivation

Used as teaching support asset to demonstrate the fundamental fact that the basis of computer science is data representation and manipulation, and that most of what any computer does is retrieve, store, and manipulate data.

Installation

Using go install

go install github.com/haroun-b/jpeg-to-xlsx@latest

Don't forget to add $GOPATH/bin to your $PATH if you haven't already

export PATH=$PATH:$(go env GOPATH)/bin

Using A Binary

  • Download the latest binary from the releases page
  • Add the binary to your binary directory (e.g. /usr/local/bin)

Make sure the binary has execute permissions

Usage

jpeg-to-xlsx <./dir/source-img.jpeg> [<./dir/output.xlsx>]

Example Output

Example Output

About

A simple command-line tool to encode JPEGs as XLSX files, where each pixel's RGB values are encoded using three cells' background colors, similar to how screens display images.

Resources

License

Stars

Watchers

Forks