Skip to content

Support non-JPEG TIFF output by exposing VipsForeignTiffCompression #594

@changyh

Description

@changyh

After image of tif file resize() the result file is almost double size then original tif file size.
I use the tif file on your test dir, G31D.TIF, and the code as the following:

var image = sharp('G31D.TIF');
image.metadata(function(err, metadata) {
    if(err){
        console.log('err= ',err);
    } else {
        console.log('metadate= ', metadata);
        return image.resize(Math.round(metadata.width/2)).toFile('G31D_1.TIF');
    }  
 });

-rw-r--r--@ 1 xxxx staff 125824 Sep 25 19:13 G31D.TIF //2464 × 3248
-rw-r--r--@ 1 xxxx staff 235499 Oct 5 11:15 G31D_1.TIF //1232 × 1624

The image file property is correct.

May I know why and how to change it?

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions