Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Image Conversion html->jpg

  • Subject: Re: Image Conversion html->jpg
  • From: Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx>
  • Date: Mon, 04 Sep 2006 07:39:41 +0100
  • Newsgroups: comp.os.linux.misc
  • Organization: schestowitz.com / ISBE, Manchester University / ITS / Netscape / MCC
  • References: <1157340628.547697.235870@e3g2000cwe.googlegroups.com> <44FBAA3F.B3870058@yahoo.com> <44fbb04a$0$26728$5a62ac22@per-qv1-newsreader-01.iinet.net.au> <ktoss3-4cc.ln1@xword.teksavvy.com> <1157346916.778701.274680@i3g2000cwc.googlegroups.com>
  • Reply-to: newsgroups@xxxxxxxxxxxxxxx
  • User-agent: KNode/0.7.2
__/ [ 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

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index