davejay — 2012-05-09T16:59:46-04:00 — #1
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?
rubble — 2012-05-09T17:08:39-04:00 — #2
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
tom8 — 2012-05-09T17:17:28-04:00 — #3
You could do something like that with imagecreate:
davejay — 2012-05-09T17:20:35-04:00 — #4
rubble — 2012-05-09T17:27:01-04:00 — #5
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.
csu_bill — 2012-05-09T21:37:35-04:00 — #6
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.