Skip to content

compress .gif file error #89

@qlqllu

Description

@qlqllu

I want to compress a .gif file by using jszip in node js, the code is like this:

var fileContent = fs.readFileSync("loading.gif", 'base64');
zip.file('loading.gif', fileContent, {base64: true});
var data = zip.generate({type: 'nodebuffer', compression: 'DEFLATE'});
fs.writeFileSync( '/loading.zip', data, 'binary');

The code can run and the zip file can be generated. However, the .gif file can't be decompressed correctly.
loading

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions