Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 1.48 KB

README.md

File metadata and controls

37 lines (22 loc) · 1.48 KB

Mosaic

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.

Requirements

Here are the requirements for these scripts:

  • Python3.x
  • Pillow

Usage

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.

Some results

github-logo-transparent github-out apple apple_out

Note about a mask: I used someone's mask for glossy appearance. Thanks for the icon Gwas10