ccapture.js icon indicating copy to clipboard operation
ccapture.js copied to clipboard

Add jpeg blob capture

Open nijk opened this issue 8 years ago • 4 comments

Addresses issue #48

nijk avatar Apr 21 '17 12:04 nijk

So what does this return when .save() is called?

spite avatar Apr 21 '17 20:04 spite

I guess I haven't really catered for the case where .save() is called without a callback - I suppose I haven't considered it because it doesn't really make sense to do that when you want to obtain an array of blobs rather than having the capturer download a collection of files for you.

On reflection, it may be a better pattern to augment the existing CCJPEGEncoder to allow the flexibility of a Tar of Images or Array of Blobs on .save() and also allow for the callback on each frame .add().

nijk avatar Apr 21 '17 21:04 nijk

@spite Any thoughts on this?

nijk avatar Apr 24 '17 14:04 nijk

I guess I don't understand why you need to create a new Frame Encoder. Why doesn't the current JPEG/PNG encoder work for your needs?

spite avatar May 08 '17 22:05 spite