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

Save JPG or PNG, invalid archive.

Open rankinstudio opened this issue 7 years ago • 7 comments

Archive is either unknown format or damaged.

Not sure why this is happening. The WEBM and GIF captures work great. Any ideas?

Thanks

rankinstudio avatar Feb 11 '17 18:02 rankinstudio

Not really, without more details. What is your setup like, or can you post something online?

spite avatar Feb 11 '17 19:02 spite

This is how I'm calling the image capture:

function saveJPG(){
    var pngcapturer = new CCapture( { format: 'png' } );
    pngcapturer.start();
    pngcapturer.stop();
    pngcapturer.save();
}

rankinstudio avatar Feb 11 '17 19:02 rankinstudio

Exactly like that? If there are no pngcapturer.capture( canvas ); between .start() and .stop() there are no frames to export.

spite avatar Feb 11 '17 19:02 spite

Did this get solved?

spite avatar Feb 16 '17 02:02 spite

I was never able to get this to work.

rankinstudio avatar Jun 10 '17 17:06 rankinstudio

the suggestion of @spite does not work. I'm struggling with saving just one .png with this library also. Trying to find out how.... hopefully I will get this working.

Geoneer avatar Jul 25 '17 12:07 Geoneer

@Geoneer ar you sure you're pushing at least a complete frame? Complete means it's rendered and has a valid size (not 0x0)

spite avatar Jul 25 '17 12:07 spite