ccapture.js
ccapture.js copied to clipboard
Save JPG or PNG, invalid archive.
Archive is either unknown format or damaged.
Not sure why this is happening. The WEBM and GIF captures work great. Any ideas?
Thanks
Not really, without more details. What is your setup like, or can you post something online?
This is how I'm calling the image capture:
function saveJPG(){
var pngcapturer = new CCapture( { format: 'png' } );
pngcapturer.start();
pngcapturer.stop();
pngcapturer.save();
}
Exactly like that? If there are no pngcapturer.capture( canvas ); between .start() and .stop() there are no frames to export.
Did this get solved?
I was never able to get this to work.
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 ar you sure you're pushing at least a complete frame? Complete means it's rendered and has a valid size (not 0x0)