Here, on this site, are often preview images shown beside the questions which are warped and with an background shadow.

How is this effect achieved? PHP?


1 answer


Paul Farnell said:

To generate the initial screenshot of the page we use the same technology we built for Litmus. It renders the URL in a browser and captures a screenshot. This takes just a few seconds.

The resulting image is then passed through an ImageMagick to create the 3D effect. We use a command line Ruby script to control ImageMagick. Here's the script in its entirety:

Answered about 8 years ago by Tony Crockford