Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #868
| From | JohnF <john@please.see.sig.for.email.com> |
|---|---|
| Newsgroups | comp.lang.postscript |
| Subject | Re: (embarrassingly) simple showpage question |
| Date | 2012-08-09 05:40 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <jvvigi$fm2$1@reader1.panix.com> (permalink) |
| References | (1 earlier) <MPG.2a8c1eaa69cee005989898@usenet.plus.net> <jvt9gu$sgj$1@reader1.panix.com> <MPG.2a8c3eb75797db82989899@usenet.plus.net> <jvtdqm$f7b$1@reader1.panix.com> <dl9zrk5yjn73.1lza6l7rv7bqu.dlg@40tude.net> |
tlvp <mPiOsUcB.EtLlLvEp@att.net> wrote:
> On Wed, 8 Aug 2012 10:08:22 +0000 (UTC), JohnF wrote:
>> But there's no way I could have discovered it
>> on my own beforehand (except sheer dumb luck).
>
> Indeed, if YaBinOogling is fishing, success lies
> entirely in knowing -- or stumbling upon -- what
> to use as -- and how to cut -- your bait :-) .
> Cheers, -- tlvp
Thanks again, Ken. First cut is pretty much done, i.e.,
pretty much working as intended. An example is at
http://www.forkosh.com/decorative/decofweek.ps
intended to be input into ImageMagick's
convert -delay 0 -loop 0 input.ps output.gif
whose corresponding output is at (you guessed it)
http://www.forkosh.com/decorative/decofweek.gif
The reason I mention all that is because the gif's
5MB, and convert took 6mins to render it from ps
on an i7-920 (though only utilizing one core).
That's at least partly because I couldn't originally
figure out how to get a transparent background.
So the first %%Page contains one lineto, the second page
contains two, ..., the hundredth/last contains 100 (total 5050).
A smaller and faster version using
convert -transparent "#FFFFFF" -delay 0 -loop 0 input.ps output.gif
whose input/output is at
http://www.forkosh.com/decorative/decofweek-v2.ps
http://www.forkosh.com/decorative/decofweek-v2.gif
works with each %%Page containing only one line (total 100),
and the transparent background lets those lines build up.
But the v2-file's still 350KB and convert takes 31secs,
which is still too slow for online world use. ImageMagick
convert runs gs for its ps-->gif conversion, driven by a
delegates.xml file (in /usr/lib/ImageMagick-6.4.3/config/
on my box) containing the line
<delegate decode="ps:color" command="---see below---"/>
where command is
gs -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT
-sDEVICE=pnmraw
-and-some-other-stuff
Trying to speed it up, I naively tried psrgb instead of pnmraw,
but that just took longer. Is there any way for gs to
more quickly (i.e., less slowly) run this ps-->gif conversion
with a transparent background?
--
John Forkosh ( mailto: j@f.com where j=john and f=forkosh )
Back to comp.lang.postscript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
(embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 04:58 +0000
Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-08 07:59 +0100
Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 08:54 +0000
Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-08 10:17 +0100
Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-08 10:08 +0000
Re: (embarrassingly) simple showpage question tlvp <mPiOsUcB.EtLlLvEp@att.net> - 2012-08-08 22:07 -0400
Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-09 05:40 +0000
Re: (embarrassingly) simple showpage question ken <ken@spamcop.net> - 2012-08-09 08:44 +0100
Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-09 09:38 +0000
Re: (embarrassingly) simple showpage question JohnF <john@please.see.sig.for.email.com> - 2012-08-10 06:24 +0000
csiph-web