Skip to main content
Participant
February 7, 2017
Answered

How i can export animated gif by means of jsfl?

  • February 7, 2017
  • 2 replies
  • 498 views

Hi all.
How i can export animated gif by means of jsfl?

Is there an analogue fl.getDocumentDOM().exportPNG for File->Export->Export Animated GIF

This topic has been closed for replies.
Correct answer ClayUUID

This is theoretically possible, but would require a lot of effort. You'd have to export the frames as a PNG sequence, then use the FLfile API to read in the PNGs as binary data (might not be possible... the docs are vague on this point), then use a JavaScript port of libpng to convert that to raw pixel data, then use a JavaScript-based GIF encoder to compress the image sequence and write it out.

2 replies

ClayUUIDCorrect answer
Legend
February 7, 2017

This is theoretically possible, but would require a lot of effort. You'd have to export the frames as a PNG sequence, then use the FLfile API to read in the PNGs as binary data (might not be possible... the docs are vague on this point), then use a JavaScript port of libpng to convert that to raw pixel data, then use a JavaScript-based GIF encoder to compress the image sequence and write it out.

kglad
Community Expert
Community Expert
February 7, 2017

not that i see.