Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.postscript > #2036 > unrolled thread
| Started by | Eli the Bearded <*@eli.users.panix.com> |
|---|---|
| First post | 2014-09-10 19:14 +0000 |
| Last post | 2014-09-22 07:45 +0000 |
| Articles | 5 — 4 participants |
Back to article view | Back to comp.lang.postscript
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
| From | Eli the Bearded <*@eli.users.panix.com> |
|---|---|
| Date | 2014-09-10 19:14 +0000 |
| Subject | postscript as animation language |
| Message-ID | <eli$1409101453@qz.little-neck.ny.us> |
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 and using a sample
file that has 100 pages, this ended up being the fasted 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
Some comments:
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
------
doesn't have any ready programs of his own to make animations
[toc] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2014-09-11 03:08 -0700 |
| Message-ID | <1e80f679-6c8c-4734-acd5-04ce1213bbc4@googlegroups.com> |
| In reply to | #2036 |
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
[toc] | [prev] | [next] | [standalone]
| From | Bogus@Embarq.com (Steve) |
|---|---|
| Date | 2014-09-11 11:37 +0000 |
| Message-ID | <c1.2b8.3htykm$05A@NOVOSAD3.EMBARQ.COM> |
| In reply to | #2038 |
jdaw1 <jdawiseman@gmail.com> writes: >In 2008 I used 242 lines of PostScript to define a sequence of images about= > M=F6bius transformations, distilled into a PDF, and converted to a GIF ani= >mation via GraphicConverter. > >Five megs each.=20 >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.
[toc] | [prev] | [next] | [standalone]
| From | jdaw1 <jdawiseman@gmail.com> |
|---|---|
| Date | 2014-09-12 02:33 -0700 |
| Message-ID | <42947a3e-4f17-4a28-9f11-e91006a7ef60@googlegroups.com> |
| In reply to | #2039 |
> 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
[toc] | [prev] | [next] | [standalone]
| From | JohnF <john@please.see.sig.for.email.com> |
|---|---|
| Date | 2014-09-22 07:45 +0000 |
| Message-ID | <lvok34$gb4$1@reader1.panix.com> |
| In reply to | #2036 |
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 )
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.postscript
csiph-web