Skip to content

jontonsoup4/flagify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#What is flagify? flagify combines a local image or image url with a picture of a flag. Modeled after the Facebook profile support image, this module expands the functionality to take input from a url (such as a Facebook profile picture) or a local image and combine it with a flag of the user’s choice.

Example script

from flagify import Flagify

# takes an image's url as an argument, adds url=True, combines the image with flags.png, and saves it
image_url = 'https://raw.githubusercontent.com/jontonsoup4/flagify/master/examples/cat.jpg'
image = Flagify(image_url, url=True).add_flag('flags.png')
image.save('catflag.png')

# takes a local image, defaults to .jpg, combines the image with flags.png, and saves it
profile_picture = Flagify('melody').add_flag('flags.png')
profile_picture.save('melodyflags.png')

Or run from command line

python3 flagify.py path_to_profile_picture path_to_flag

##Rendered Pictures Picture

Picture

#Setup python3 setup.py install

#Dependencies Pillow>=3.0.0

About

Adds a custom flag to a Facebook profile picture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages