0xC53E Peculiar Lenticular

I needed a symbolic gift some time ago and thought a lenticular keychain but the shops I found to get a custom made one would take over 2 weeks to deliver.

Googling a bit for DIY seems the only thing required to print lenticulars is image processing and lenticular lens. Again, getting lenticular lens was not so easy as it looked, so off and found this video, that looks easy!

Printing photos, cutting in several stripes and putting them all back together seemed like something to scripted though, hence

Example

image 1image 2

Running

python lenticular.py b.png o.png

Yields

result image