From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 14700@debbugs.gnu.org
Subject: bug#14700: 24.3.50; Animated ImageMagick images doesn't work
Date: Thu, 15 Aug 2013 15:59:10 +0200 [thread overview]
Message-ID: <m38v03qclt.fsf@stories.gnus.org> (raw)
In-Reply-To: <jw4nasuu5q.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed, 14 Aug 2013 12:14:09 -0400")
Glenn Morris <rgm@gnu.org> writes:
> There's an "animate" command-line program that is part of ImageMagick,
> and it seems to do fine on the examples from
> http://www.imagemagick.org/Usage/anim_basics/
>
> So maybe the source of that will have clues...
Thanks. I've started reading the source code now. Unfortunately, it's
written in an oldee-stylee C manner, meaning that no function is less
than 1500 lines... *sigh*
I've looked at Chong's code in gif_load again, though, and I think I
understand what's going on now. Animated gifs are basically just a
series of normal gifs, but wherever there's a transparent gif, we're
supposed to show the data from the previous gif. So to display image X,
we have to compute all images from 0 to X and apply the transparencies.
Doing this in imagemagick_load in the same manner shouldn't be too
difficult, I think. The information is available -- i.e., we just need
to know what the transparent colour is, and then the rest is just
looping and constructing the resulting image.
Reusing the code in gif_load directly doesn't seem like the best option
(it's creating X structures directly, if I interpret it correctly), so I
think I'll have a whack at implementing a imagemagick_compute_scene
function by peeking at Chong's code heavily.
--
(domestic pets only, the antidote for overdose, milk.)
No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html
next prev parent reply other threads:[~2013-08-15 13:59 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-23 19:39 bug#14700: 24.3.50; Animated ImageMagick images doesn't work Lars Magne Ingebrigtsen
2013-06-24 0:21 ` Glenn Morris
2013-06-24 8:02 ` Lars Magne Ingebrigtsen
2013-08-14 14:18 ` Lars Magne Ingebrigtsen
2013-08-14 16:14 ` Glenn Morris
2013-08-15 13:59 ` Lars Magne Ingebrigtsen [this message]
2013-08-15 15:11 ` Lars Magne Ingebrigtsen
2013-08-15 15:44 ` Lars Magne Ingebrigtsen
2013-08-15 16:07 ` Lars Magne Ingebrigtsen
2013-08-15 19:55 ` Lars Magne Ingebrigtsen
2013-08-16 14:58 ` Lars Magne Ingebrigtsen
2013-08-16 17:12 ` Glenn Morris
2013-08-17 14:48 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38v03qclt.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=14700@debbugs.gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.