Skip to content

Control number of open files in libvips' cache #315

@impomezia

Description

@impomezia

Just simple open this gif file http://i.imgur.com/yBEqU6A.gif by using simple code:

sharp('yBEqU6A.gif').metadata()
    .then(metadata => {
    });

It causes leak about 500 MB of memory for each open file. If 4 times to open this file, will leak about 2GB. Probably related fix https://github.com/jcupitt/libvips/pull/313

Affected current npm vesion for Windows and Ubuntu 14.04

It also may be a good idea to do sharp.format read/write, for example to disable magick.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions