A script's repo that makes you think your pictures made from shiny rocks, bricks, little pixels, etc. Actually, pixelate an image then use an alpha mask. That's all. For now.
Here are the requirements for these scripts:
- Python3.x
- Pillow
You can use it by typing
python3 mosaic.py --input <PATH_OF_ORIGINAL_PHOTO> --output <PATH_TO_THE_NEW_IMAGE.png> --mask <PATH_TO_ALPHA_MASK_IMAGE> --background "<HEX_CODE_FOR_BACKGROUND>"
Notes for arguments:
--input
: required.--output
: required.--mask
: Optional. But if you do not specify a mask, your picture will be pixelized only.--background
: Optional. If you do not specify, it'll use#FFFFFF
.
Note that for --background
parameter, your color should be start with #
and must be 6 characters long, exactly. So, you should use #FFFFFF
instead of #FFF
and remember "
s.
Note about a mask: I used someone's mask for glossy appearance. Thanks for the icon Gwas10