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,
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:
-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,