/fif

A command line tool for embedding any file into PNG, GIF, WAV file formats and decoding back.

Primary LanguagePythonOtherNOASSERTION

FIF (File in File)

FIF is a command line tool for embedding any file into GIF, PNG and WAV files and decoding back.

Installation

pip3 install fif

Usage

dogmalar.mp3 file as grayscale GIF animation

fif --encode gif dogmalar.mp3
# saved file -> dogmalar.gif

dogmalar

Extract dogmalar.mp3 from GIF container

fif dogmalar.gif
# saved file -> dogmalar.mp3
positional arguments:
  input                 Input file path

optional arguments:
  -h, --help            show this help message and exit
  -e {png,wav,gif}, --encode {png,wav,gif}
                        encode file
  -m {1,L,P,RGB,RGBA}, --mode {1,L,P,RGB,RGBA}
                        Image mode
  -v, --verbose         Increase output verbosity