On Fri, 2004-09-17 at 22:22, raditha dissanayake wrote:
> Michael Mao wrote:
>
> > Is there a way to capture a snapshot of a html page and save it as a
> > jpg using php?
> >
> This is something that's very very hard to do with PHP but can be easily
> done with Java.
Have not tried this but how about using 'import' which is part of the
ImageMagick package?
According to the man page:
NAME
import - capture some or all of an X server screen and save the
image to a file.
SYNOPSIS
import [ options ... ] file
DESCRIPTION
Import reads an image from any visible window on an X server
and out-puts it as an image file. You can capture a single window,
the entire screen, or any rectangular portion of the screen. Use
display for redisplay, printing, editing, formatting, archiving, image
processing, etc. of the captured image.
The target window can be specified by id, name, or may be
selected by clicking the mouse in the desired window. If you press
a button and then drag, a rectangle will form which expands and
contracts as the mouse moves. To save the portion of the screen
defined by the rectan- gle, just release the button. The keyboard bell
is rung once at the beginning of the screen capture and twice when
it completes.
--
s/:-[(/]/:-)/g
Brian GnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu
======================================================================
gpg --keyserver pgp.mit.edu --recv-keys 04A4F0DC
Key Info: http://gfx-design.com/keys
Linux Registered User #339825 at http://counter.li.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php