LebGeeks Forums

A community for lebanese technology enthusiasts.

You are not logged in.

Announcement

Make sure you read the LebGeeks Forum Etiquette

#1 14-07-2010 03:48:46 pm

AymanFarhat
Member
From: %SystemRoot%\System32\bin
Registered: 05-06-2009
Website

Convert .swf to .gif

Good evening everyone, I am working on a J2ME app were I want to display an animation(which is originally in flash) yet I want to keep it as portable as possible. Not all devices support animated gif or flash so what I want to do is convert the flash file into a series of images and frames, and then achieve the animation from the program through showing each image one after another.

What I need is a .swf to .gif decoder that would generate all the images included in the swf animation to a set of .gif images. Do you know of any good tool for achieving that? Do you have any advice pertaining to this issue? Thanks in advance, have a good day :)


Give a person some code and he will be fine for a day, teach a person to code and he will be set for life.

"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.

Online

 

#2 14-07-2010 04:44:09 pm

rolf
Member
From: Beirut
Registered: 05-04-2005

Re: Convert .swf to .gif

Why dont you take screenshots? Or video screen capture?


mpt.gov.lb : Sucking the fun out of Internet since 1990 !

Offline

 

#3 14-07-2010 05:09:55 pm

AymanFarhat
Member
From: %SystemRoot%\System32\bin
Registered: 05-06-2009
Website

Re: Convert .swf to .gif

Why dont you take screenshots? Or video screen capture?

No thats not what I want actually, what I want to obtain is not a single image but a set of still images pertaining to the animation i.e. when played one after another in the program, I would obtain the same animation as the flash one.

Last edited by AymanFarhat (14-07-2010 05:10:16 pm)


Give a person some code and he will be fine for a day, teach a person to code and he will be set for life.

"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.

Online

 

#4 14-07-2010 05:45:50 pm

kareem_nasser
Member
From: Beirut - Lebanon/The Patriots
Registered: 17-01-2010
Website

Offline

 

#5 14-07-2010 06:32:47 pm

duckster
Member
Registered: 13-02-2007

Re: Convert .swf to .gif

gifsicle http://www.lcdf.org/gifsicle/ for gifs

Offline

 

#6 15-07-2010 10:37:39 am

rolf
Member
From: Beirut
Registered: 05-04-2005

Re: Convert .swf to .gif

AymanFarhat wrote:

Why dont you take screenshots? Or video screen capture?

No thats not what I want actually, what I want to obtain is not a single image but a set of still images pertaining to the animation i.e. when played one after another in the program, I would obtain the same animation as the flash one.

Duh, I know that!
That's why I said "screenshotS", and also video capture (from which you should be able to extract your images)


mpt.gov.lb : Sucking the fun out of Internet since 1990 !

Offline

 

#7 15-07-2010 10:48:41 am

xterm
Wiki Moderator
Registered: 18-02-2009

Re: Convert .swf to .gif

What you plan on doing is a resource hog Ayman.


λ

Offline

 

#8 15-07-2010 03:12:18 pm

AymanFarhat
Member
From: %SystemRoot%\System32\bin
Registered: 05-06-2009
Website

Re: Convert .swf to .gif

@kareem_nasser, thanks for the link but that tool generates sets of images that are extremely large in size!

@duckster, thanks for the tool, this can be useful after converting from swf to gif.

rolf wrote:

AymanFarhat wrote:

Why dont you take screenshots? Or video screen capture?

No thats not what I want actually, what I want to obtain is not a single image but a set of still images pertaining to the animation i.e. when played one after another in the program, I would obtain the same animation as the flash one.

Duh, I know that!
That's why I said "screenshotS", and also video capture (from which you should be able to extract your images)

Sorry for the mis-understanding.

What you plan on doing is a resource hog Ayman.

You are right, the best thing to do is forget about this animation as it is not really vital, yet it would have been looked nice in the splash screen. Or maybe you have a better more efficient idea(yet taking care of portability at the same time).


Give a person some code and he will be fine for a day, teach a person to code and he will be set for life.

"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.

Online

 

#9 15-07-2010 03:18:18 pm

xterm
Wiki Moderator
Registered: 18-02-2009

Re: Convert .swf to .gif

Your best bet is to convert to a video format that is supported by HTML5.

If you consider what you're planning on doing, you'll need around 15 frames per second to make it run smoothly, that's 15 images per second! Unless you're going for a time lapse at which point you can skip a few frames but you'll lose the smooth experience.

I believe J2ME does have a browser panel. (I believe it was JEditorPane in J2SE). Check whether it supports HTML5. If not, you're out of luck.

Last edited by xterm (15-07-2010 03:19:24 pm)


λ

Offline

 

Board footer

(CC) 2004-2010 LebGeeks.com
Part of the LebGeeks Network.