asciinema / asciicast2gif

Generate GIF animations from asciicasts (asciinema recordings)
MIT License
1.21k stars 82 forks source link

Use lowest compression when saving PNG to speed up process? #4

Closed ku1ik closed 2 years ago

ku1ik commented 7 years ago

PhantomJS's page.render method support second argument, an options object where it's possible to specify quality:

page.render(imagePath, { quality: 100 });

For PNG quality means compression, and with 100 it generates PNG files the fastest, with least/no compression.

This may speed up PNG generation, as it doesn't compress, but at the same time it may slow it down, as bigger PNG files need to be saved to disk, and disk I/O is slow. Needs benchmarking.