Skip to content

hmagan/img-to-amogus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to Amogus Converter

Converts given image (.png, .jpg, etc) to an amogus gif!

Usage

Place image in the /target/ folder (or anywhere realistically, assuming you can get its path). Next, type the following into the console:

$ python amogus.py path [-size]

Where path is a required string relating to the path of the target image and -size is an optional parameter relating to the size of the outputted .gif (see -h for details).

$ python amogus.py -h
usage: image_to_amogus [-h] [-size SIZE] path

positional arguments:
  path        Path to target image, where the /target/ folder is the current
              directory.

optional arguments:
  -h, --help  show this help message and exit
  -size SIZE  Integer representing the side length of square images, and the
              length of the shortest side in rectangular images (16 by
              default).

Example

Here's an example of the program run on the Girl with a Pearl Earring.

Girl with a Pearl Earring, unchanged.

Examples:

$ python amogus.py example.jpg
example_amogus.gif saved in ../output/ folder. So sussy! ඞ

Girl with a Pearl Earring, as a 16x16 amogus gif.

$ python amogus.py example.jpg -size=8
example_amogus.gif saved in ../output/ folder. So sussy! ඞ

Girl with a Pearl Earring, as an 8x8 amogus gif.

$ python amogus.py example.jpg -size=32
example_amogus.gif saved in ../output/ folder. So sussy! ඞ

Girl with a Pearl Earring, as a 32x32 amogus gif.

$ python amogus.py example.jpg -size=64
example_amogus.gif saved in ../output/ folder. So sussy! ඞ

Girl with a Pearl Earring, as a 64x64 amogus gif.

About

Converts given image (png, jpg, etc) to amogus gif.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages