Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2062
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!not-for-mail |
|---|---|
| From | JohnF <john@please.see.sig.for.email.com> |
| Newsgroups | comp.lang.postscript |
| Subject | Re: postscript as animation language |
| Date | Mon, 22 Sep 2014 07:45:40 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 90 |
| Message-ID | <lvok34$gb4$1@reader1.panix.com> (permalink) |
| References | <eli$1409101453@qz.little-neck.ny.us> |
| NNTP-Posting-Host | panix3.panix.com |
| X-Trace | reader1.panix.com 1411371940 16740 166.84.1.3 (22 Sep 2014 07:45:40 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Mon, 22 Sep 2014 07:45:40 +0000 (UTC) |
| User-Agent | tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (NetBSD/6.1.4 (i386)) |
| Xref | csiph.com comp.lang.postscript:2062 |
Show key headers only | View raw
Eli the Bearded <*@eli.users.panix.com> wrote:
> In alt.os.linux.slackware there was a recent thread about video editors
> which then digressed into making animated gifs out of multipage
> postscript files. With three people participating...
As one of the three participating digressees,
thanks for the additional info below.
> ...and using a sample file that has 100 pages,
>this ended up being the fastest conversion method:
>
> gs -dNOPAUSE -q -sDEVICE=png256 -dBATCH -sOutputFile=- decofweek.ps | \
> convert -loop 0 -delay 0 \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> png:- png:- png:- png:- png:- png:- png:- png:- png:- png:- \
> multi.gif
>
> Source file: http://www.forkosh.com/decorative/decofweek.ps
And I'd also like to take this additional opportunity
to again thank Gernot Hoffmann for his help with the
ps programming to create the above file, provided
several years ago in several threads in this same ng.
> Some comments:
Anyone interested in this stuff might want to read the original thread
in comp.os.linux where these comments are elaborated in more detail.
> DEVICE=png256 was selected because GIF are limited to 256 colors
> anyway and it was faster to limit the output than to "print" full
> color and resample down. On grayscale output I find pgmraw produces
> better looking output than png256.
>
> OutputFile=- send everything to STDOUT to avoid disk delay, this
> makes for a awkward "convert" command line, but no temp files to
> clean up and at least twice as fast in our tests.
>
> -loop 0 means "loop forever" in the context of Imagemagick and
> animated GIFs.
>
> -delay 0 means "fast as possible", the native unit of delay time for
> GIFs is hundredths of a second, so 4 or 5 for typical movie frame
> rates.
>
> One "-" per input image, to let convert know how many to expect, and
> each "-" preceeded with the filetype ("png:") because convert isn't
> so greate at identifying them otherwise.
>
> multi.gif is the final output file, by virtue of being named last on
> the convert command line.
>
> Prior to this exercise, I had not seriously considered postscript as a
> language for animations, but now I'm intrigued. Elijah
AND FROM OTHER POSTS IN THIS THREAD...
=========================================
Steve <Bogus@embarq.com> writes:
jdaw1 <jdawiseman@gmail.com> writes:
> In 2008 I used 242 lines of PostScript to define
> a sequence of images about M?bius transformations,
> distilled into a PDF, and converted to a GIF animation
> via GraphicConverter. Five megs each.
> http://www.jdawiseman.com/papers/trivia/mobius_12.gif
> http://www.jdawiseman.com/papers/trivia/mobius.gif
Hi, Rather nice. Thank you for sharing. I have made some
GIF animations using PostScript (Ghostscript). I saved some
space in mine by limiting the color palette to 8 or 16 colors.
Regards, Steve N.
jdaw1 <jdawiseman@gmail.com> writes:
> Rather nice. Thank you for sharing.
In which case I'd better share code.
http://www.jdawiseman.com/papers/trivia/200812_mobius.ps
Copyright 2008 Julian D. A. Wiseman of www.jdawiseman.com,
and released under Creative Commons Attribution-ShareAlike 4.0
International Licence,
http://creativecommons.org/licenses/by-sa/4.0/deed.en_GB
--
John Forkosh ( mailto: j@f.com where j=john and f=forkosh )
Back to comp.lang.postscript | Previous | Next — Previous in thread | Find similar | Unroll thread
postscript as animation language Eli the Bearded <*@eli.users.panix.com> - 2014-09-10 19:14 +0000
Re: postscript as animation language jdaw1 <jdawiseman@gmail.com> - 2014-09-11 03:08 -0700
Re: postscript as animation language Bogus@Embarq.com (Steve) - 2014-09-11 11:37 +0000
Re: postscript as animation language jdaw1 <jdawiseman@gmail.com> - 2014-09-12 02:33 -0700
Re: postscript as animation language JohnF <john@please.see.sig.for.email.com> - 2014-09-22 07:45 +0000
csiph-web