Skip to content

A script's repo that makes you think that your pictures made from shiny rocks, bricks, little pixels, etc.

Notifications You must be signed in to change notification settings

nejdetckenobi/mosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A script's repo that makes you think that your pictures made from shiny rocks, bricks, little pixels, etc.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages