Skip to content
/ PNGify Public
forked from tofl/PNGify

A command line tool to encode text and files into PNG images

Notifications You must be signed in to change notification settings

crnnr/PNGify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNGify

PNGify is command line tool written in Go that allows you to encode text and files into PNG images and decode them back to their original form. This approach blends text and image processing, offering a funny way to store and retrieve data. The goal of this experimental project is to explore creative possibilities.

Installation

Make sure you have the Go compiler installed on your computer and simply compile this project with go install:

$ go install github.com/tofl/pngify@latest

Usage

Encode

Use the encode command to convert data into a PNG image. You can use either the -t flag to encode text or the -f flag to encode a file.

Encode text:

$ pngify encode -t "Your text here"

Encode a file

$ pngify encode -f /path/to/file

An image with the name output.png will pop up in your current directory.

Decode

Use the decode command to retrieve the original data from a PNG image. You need to provide the path to the PNG image using the -p flag.

$ pngify decode -p /path/to/image.png

Image metadata

The output images have the following metadata:

  • Bit Depth: 8 bits
  • Color Type: RGB
  • Interlace: None
  • Filtering: None

Examples

Text
Normal text
A zip file
A .zip file
A .mov video file
A .mov video file
A .webp image file
A .webp image file

Try decoding these images to see the original files!

About

A command line tool to encode text and files into PNG images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%