Skip to main content
Participant
February 7, 2017
解決済み

How i can export animated gif by means of jsfl?

  • February 7, 2017
  • 返信数 2.
  • 498 ビュー

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

このトピックへの返信は締め切られました。
解決に役立った回答 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

ClayUUID解決!
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.