I'm not sure if this is a PHP question. But I have no idea if or how this might be accomplished. But basically what I'd like to do is to create a page with some specially formatted text on it and from that generate a png (or maybe jpg). And I'd need to be able to set the width and height of the image to generate.
So basically, load up a web page with your browser set to something like 500x800 and then create a png of it.
Any ideas what I should look for to do something like this?
Why not use GD or Imagemagick to create the image straight away?
Imagemagick now has access to Pango if setup with the delegate.
Pango and imagemagick
You could do something like that with imagecreate:
I think Imagemagick can do it but you need to use an X server whatever that is!
Check out the Imagemagick forum - I did find this script but I have not used it: http://www.imagemagick.org/Usage/scripts/snapshot_webpages
You would probably need to capture the whole page then crop the part you want.
I think I would load the page and use something like Greenshot or another program designed to create images from your monitor screen. You can use the program to highlight the specific part of the screen that you want, eliminating the browser borders, toolbars, etc.
This topic is now closed. New replies are no longer allowed.