Hacker News new | ask | show | jobs
Ask HN: How to do server side image processing?
1 points by tope 4837 days ago
I have been using this site for a while now and I'm kind of curious as to how it is implemented.

http://placeit.breezi.com

It takes an image and creates a product shot. Really cool, how would you go about implementing such. HTML5, PHP?

2 comments

It's done server side, so isn't just a case of applying to your image a linear transform that matches the destination image of the phone you want to place it on, then using "green screen" technology to insert the transformed image into the image of the phone.

Seems pretty trivial, technically. Maybe I don't understand your question.

It just uploads the image you drop, combines it server-side (in PHP you'd use something like http://www.php.net/manual/en/book.image.php). Tricky part is getting the tilting right so it matches the phone.