__/ [ Daniel ] on Monday 04 September 2006 06:15 \__
> Chris F.A. Johnson wrote:
>> On 2006-09-04, Simon Jones wrote:
>> > On Mon, 04 Sep 2006 00:23:27 -0400, CBFalconer mumbled:
>> >> Daniel wrote:
>> >>>
>> >>> Does anyone know of a free linux tool to convert an html page into
>> >>> a jpg? I've found a couple real pricey ones, but I'm looking for
>> >>> a free one to try out.
>> >>
>> >> I can't imagine any possible reason for doing such a conversion.
>> >> At best it would lose information and become larger and more
>> >> unwieldy.
>> >>
>> >
>> > It's a simple way to advertise a design portfolio but that's easy enough
>> > to take a screenshot. I'm guessing the OP wants to automate it.
>>
>> This is not perfect, but it's a start, and it should work in any
>> *nix shell:
>>
>> URL=$1
>> file=`date +%Y_%m_%d-%H_%M_%S`
>> folder=$HOME/work/screenshots
>> firefox -remote "openurl($URL,new-window`)" &
>> sleep 5 ## adjust as necessary
>> import -window root $folder/$file.jpg
>
> Thanks I'll give it a shot!
http://khtml2png.sourceforge.net/
use ImageMagick's convert command to translate from non-lossy PNG to JPEG.
Hope it helps,
Roy
--
Roy S. Schestowitz | if ("if"=inv("fi")) print("foo/bar")
http://Schestowitz.com | GNU is Not UNIX | PGP-Key: 0x74572E8E
roy pts/4 Mon Sep 4 05:02 - 05:10 (00:07)
http://iuron.com - proposing a non-profit search engine
|
|