webpage to image
Moderator: General Moderators
-
RustyDoorknobs
- Forum Newbie
- Posts: 15
- Joined: Mon Sep 07, 2009 4:50 pm
webpage to image
Hey guys,
i have a php page that uses some url variables and stuff.
i have it so you can embed this page as an iframe in a website,
but i also want people to be able to embed it in a forum,
so is there a way to convert a webpage to a .gif file? Like, a screenshot?
I really don't want to use the GD library too much, so help me out you gooses!
Sincerely,
Rusty Doorknobs
i have a php page that uses some url variables and stuff.
i have it so you can embed this page as an iframe in a website,
but i also want people to be able to embed it in a forum,
so is there a way to convert a webpage to a .gif file? Like, a screenshot?
I really don't want to use the GD library too much, so help me out you gooses!
Sincerely,
Rusty Doorknobs
Re: webpage to image
An image is static. It's a picture. You can't do anything with it but look at it.
Converting a website to an image doesn't make sense.
Converting a website to an image doesn't make sense.
-
RustyDoorknobs
- Forum Newbie
- Posts: 15
- Joined: Mon Sep 07, 2009 4:50 pm
Re: webpage to image
Its not so much a website as it is a piece of dynamic content, 250by150 pixels. I want people to be able to embed it in forums as an image.
Re: webpage to image
You'll probably be using GD for it, then.
Need a lot more information about what you're doing.
Need a lot more information about what you're doing.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: webpage to image
This is a pretty complicated feature to implement, and is not possible with PHP+GD. I would suggest looking into a service such as http://www.thumbshots.org/ (which appears free)
Re: webpage to image
You might take a look at the command-line tool available at: http://khtml2png.sourceforge.net/RustyDoorknobs wrote:Hey guys,
i have a php page that uses some url variables and stuff.
i have it so you can embed this page as an iframe in a website,
but i also want people to be able to embed it in a forum,
so is there a way to convert a webpage to a .gif file? Like, a screenshot?
I really don't want to use the GD library too much, so help me out you gooses!
Sincerely,
Rusty Doorknobs
-
RustyDoorknobs
- Forum Newbie
- Posts: 15
- Joined: Mon Sep 07, 2009 4:50 pm
Re: webpage to image
How would I use that?
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
Re: webpage to image
Probably requires some reading on your part. You'll be fine.RustyDoorknobs wrote:How would I use that?
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: webpage to image
You can use exec() to call command line, however like superdesignz suggests, you'll need to read the documents to implement it.
Re: webpage to image
Or backticks 