honza / node-thumbnail

Thumbnail worker queue for node.js
http://honza.ca/node-thumbnail/
Other
103 stars 23 forks source link

Making thumbnail increases file size #23

Open parikh5555 opened 7 years ago

parikh5555 commented 7 years ago

Module worked correctly but not as expected. My 960x960 image made 800x800 but its size increased to 524kbs from 148kbs.

var thumb = require('node-thumbnail').thumb;

// thumb(options, callback);

thumb({ source: 'H:/Desktop/Golden Associates/Golden_Web/Themes/LetsPlay/Node/thumbnail/Abhi2.jpg', // could be a filename: dest/path/image.jpg destination: 'H:/Desktop/Golden Associates/Golden_Web/Themes/LetsPlay/Node/thumbnail', concurrency: 4 }, function(files, err, stdout, stderr) { if(err) console.log(err); if (files) console.log(files); if (stderr) console.log(stderr) console.log('All done!'); });

abhi2 abhi2_thumb

I hope you can understand what I want :)

honza commented 7 years ago

That's really strange. I just tested this with the latest master, and I can't reproduce it. :(

rahul059 commented 7 years ago

@honza This issue occurred when we upload image of less size like 24kb.

jonnyeom commented 4 years ago

This is happening for me too. width is definitely smaller than my original but the size is bigger. quite strange.