else/Pixelify/README.md

53 lines
1.4 KiB
Markdown
Raw Normal View History

2014-12-15 09:23:15 +00:00
Pixelify
========
2014-12-15 09:59:47 +00:00
Requires PIL, which has been adapted to Python3 under the name pillow
pip install pillow
2014-12-15 09:23:15 +00:00
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.
2014-12-15 10:41:18 +00:00
<p align="center">
2014-12-15 10:43:28 +00:00
<img src="https://raw.githubusercontent.com/voussoir/else/master/Pixelify/examples/NeilDeGrasseTyson.png?raw=true" alt="NDGT" width="301" height="362"/>
<img src="https://raw.githubusercontent.com/voussoir/else/master/Pixelify/examples/pixel/NeilDeGrasseTyson_32.png?raw=true" alt="NDGT" width="301" height="362"/>
2014-12-15 10:41:18 +00:00
</p>
2014-12-15 09:23:15 +00:00
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.