Copy link to clipboard
Copied
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 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.
Copy link to clipboard
Copied
not that i see.
Copy link to clipboard
Copied
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.