else/Pixelify
2016-05-10 01:00:29 -07:00
..
examples else 2014-12-15 01:23:15 -08:00
pixelify.py else 2016-05-10 01:00:29 -07:00
README.md else 2014-12-15 02:43:28 -08:00

Pixelify

Requires PIL, which has been adapted to Python3 under the name pillow

pip install pillow

Takes an image, or a folder full of images, and produces pixelated versions of each image according to an "objective". That is, how the image would look if it was forced to fit into an objective x objective frame. But, the actual output file will be the same dimensions as the original, simply pixelated.

NDGT NDGT

Examples:

You are in a folder called C:\pics where there are 2 images: 1.png, 2.png

Path to image or directory
> 1.png
Pixel Objective
> 32

A folder called "pixel" is created, and 1_32.png is inside.

____________

Path to image or directory
> 1.png
Pixel Objective
> 32, 64, 128

1_32.png, 1_64.png, and 1_128.png have been created

___________

Path to image or directory
> 
Pixel Objective
> 32

Path was left completely blank (no spaces or anything), so it uses the current folder.
1_32.png and 2_32.png have been created. 

____________

Path to image or directory
> C:\otherfolder
Pixel Objective
> 24

C:\otherfolder\pixel\ is now full of 24-objective images.