Skip to content

Yukaru-san/ficonv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ficonv

A tool to convert files into images representing the file's bytes.

Features

The Tool is currently supporting the following features:

  • Convert a File to an Image
  • Convert that image back into a file

Why would you need this?

Why wouldn't you?

Here is a converted version of my ageGUI:
https://imgur.com/NCCIsYI
(It's too big for Github)

How does it work?

The program takes chunks of 4 bytes from the original file to represent 1 pixel (r,g,b,a).
This way the resulting image is always about the same size as the original file.

Installation

If you want to compile the program yourself:
git clone https://github.com/Yukaru-san/ficonv
cd ficonv
go build

You can also head over to the release tab and download a precompiled version.

Usage

usage: ficonv [<flags>] <in> <out>

A tool to parse files as an image and vice versa

Flags:
      --help     Show context-sensitive help (also try --help-long and
                 --help-man).
  -t, --trim     Trims trailing NULL bytes. Useful for txt files, can damage
                 other types. Only used together with "reverse"
  -r, --reverse  Reverses an image to a file. By default the given file will be
                 converted to an image.

Args:
  <in>   The file you want to convert
  <out>  The output file

Example:
ficonv main.go output.png           - creates the image
ficonv output.png main.go -r -t - parses the image back into a file