Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How i can export animated gif by means of jsfl?

New Here ,
Feb 07, 2017 Feb 07, 2017

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

414
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Feb 07, 2017 Feb 07, 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.

Translate
Community Expert ,
Feb 07, 2017 Feb 07, 2017

not that i see.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 07, 2017 Feb 07, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines