JPG → Magic Eye

by Ian PearceFork on Github

This page lets you convert your own depth map images into Magic Eyes.

Your image should be black and white (greyscale). The lighter a region is, the closer it will appear. Check out this example of a tricycle.

Only JPG files work for now! And even then, some JPGs might not work. If you're having issues try running your image through a JPG converter like this one.

There's no server, so your images don't actually get uploaded anywhere.


Why only JPG?

As a cross-origin security feature, HTML5 canvas doesn't let you read its pixel data once you've dirtied it with an image from outside the current domain. In order to read an image's pixel data in the browser without canvas we're using jpgjs, a JavaScript JPG decoder by @notmasteryet.