Export or copy animated gifs

T

Thierry

I am trying to export all images out of PowerPoint (using the export
method on PowerPoint shapes).
However, animated gifs do not export right: they export as still
images (animation gets lost).
So I thought about using the copy method on animated gifs. copy method
seems to preserve all information (since when I paste the copied gif
into another presentation, it remains animated), BUT I do not know how
I can find this information inside the clipboard (where gif picture
gets copied).
Anybody could help ?
Thanks
Thierry

PS: I'm doing this on PPT XP, but a solution that works on 2003 would
be OK for me.
 
S

Sonia

Using picture export retains the full GIF file. Are you right clicking and
selecting "Save as Picture"?

How are you determining that you are exporting still images? Try opening a new
presentation and inserting one of the GIF's that you don't think exported
correctly. Then press F5. Does the GIF animate?
--

Sonia Coleman
Microsoft PowerPoint MVP Team
Autorun Software, Templates and Tutorials
http://www.soniacoleman.com
 
S

Steve Rindsberg

So I thought about using the copy method on animated gifs. copy method
seems to preserve all information (since when I paste the copied gif
into another presentation, it remains animated), BUT I do not know how
I can find this information inside the clipboard (where gif picture
gets copied).

You'd need some fairly tricky WinAPI programming to do this, but it should be
possible. Another approach would be to save the presentation as HTML. PPT
will save out the gifs as animated images. Might be a little tricky to work
out what images go with which PPT shapes.

There may also be libraries that allow you to read GIFs and extract properties
like "Is it animated"? If so, that'd help; check all the GIFs PPT exports,
ignore those that aren't animated.
 
S

Steve Rindsberg

Using picture export retains the full GIF file. Are you right clicking and
selecting "Save as Picture"?

No, Thierry's using VBA. The .Export method doesn't export an animated GIF the
way PowerPoint's own Save Image command does.

But THIS turns into something interesting. The macro recorder records something
that's to all appearances quite different (and wrong) when you turn it loose while
using Save as Picture.

But apparently if you ... THIERRY, are you watching? ... use the .SaveAs method,
it exports the first shape in the shaperange if one or more shapes are selected.

And then, hugs and kisses for Sonia, you get an animated GIF.
 
S

Sonia

Well, I thought there was something "off" in the problem description, but had
VBA been mentioned I would have gone running to the hinterlands.
 
S

Steve Rindsberg

Well, I thought there was something "off" in the problem description, but had
VBA been mentioned I would have gone running to the hinterlands.

Reminder to self: don't let Sonia in on the fact that VBA's involved. She comes
up with such cool solutions to VBA problems if you don't let her know that's what
she's doing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top