Skip to content

Take the pixels from a picture and reorder them to create another picture

Notifications You must be signed in to change notification settings

francistogram/Palette-Swap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Palette-Swap

Takes the pixels from a picture and reorders them to create another picture

Dependencies

This script requires the Python PIL package which can be downloaded here http://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow for Windows

Usage

Input the path to the source picture, destination picture, and the time (in seconds) you want to run the program for. 2.5 minutes is good enough and works best with two images that have the same number of pixels (dimensions can be different). If there aren't enough pixels in the source picture then pixels will be reused starting from the top left and if the source picture is larger than the destination picture then only the necessary amount will be used (starting from the top left)

Example: Mona Lisa and American Gothic

Mona Lisa American Gothic
Original Mona Lisa Original American Gothic
Mona Lisa to American Gothic
Mona Lisa to American Gothic

About

Take the pixels from a picture and reorder them to create another picture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages