Skip to content

Writing 50mb output file for 10mb input file after shrink operation #3

@jonathan-kosgei

Description

@jonathan-kosgei

Hi!
libvips has every possible thing I could possibly need for a very involving project and is super fast!
I'm trying to use it from node because there're a few things sharp doesn't do that libvips supports.

The following script produced an image that was 5 times the input size i.e. ~10.2mb to ~56.8mb

var vips = require('vips-ffi');
var image = vips.Image.newFromFile('patrick-hendry-547014-unsplash.jpg');
image.shrink(50, 50)
image.writeToFile('testc.png')

How would I resize an image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions