Animated_GIF icon indicating copy to clipboard operation
Animated_GIF copied to clipboard

Can GIF encoding be offloaded to a web worker?

Open sole opened this issue 12 years ago • 3 comments

Currently the frames are processed in workers, but why is the encoding not in a worker?

sole avatar Jan 26 '14 18:01 sole

Uneducated guess: if encoding creates a blob, that blob is stored in memory. If it happens in a worker, that blob is in the memory space of the worker, but is not accessible to the main thread.

Montoya avatar Apr 15 '15 16:04 Montoya

@Montoya, that was a rhetoric question.

Additionally you can transfer object ownership between workers and the main thread.

sole avatar Apr 16 '15 08:04 sole

Yes I realized that like two minutes after posting it (and that the question was over a year old) but figured it was too late :(

Montoya avatar Apr 16 '15 12:04 Montoya