In my web app, the user can create some HTML/CSS markup that is saved in my database. I would like to offer a 'thumbnail' for that markup, for example in the overview view.
Since the thumbnail should be at around 200x200px, and the original markup is intended to be viewed at around 900x900px, I have to find a way to 'scale' that markup: It should be as if I took a screenshot of the rendered markup at 900px and scaled it down to 200px.
Does anybody know if this is possible using JavaScript or PHP? Or perhaps another server-side language? I would like to avoid using any 3rd party applets sucht as ActiveX.
Edit: I guess some kind of mashup, where the screenshot is taken on the client side, and then sent to the server would also be OK.