News for hackers. Stuff that matters.

Ask HN: How to do server side image processing?

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 | on HN )
Re:Ask HN: How to do server side image processing? by ColinWright on Wednesday March 20, 2013 @05:45AM (#5406307)
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.

Re:Ask HN: How to do server side image processing? by jaachan on Wednesday March 20, 2013 @05:22AM (#5406252)
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.