tomitrescak / meteor-uploads

MIT License
295 stars 41 forks source link

The images are being set to 8bit #215

Open rootedsoftware opened 8 years ago

rootedsoftware commented 8 years ago

All of my images are being set to 8-bit after they are resized. Is there any way to keep the same type? From the command line I'd just to -type TrueColor and that would keep my 24bit color even after resizing.

tomitrescak commented 8 years ago

Can you please do PR to include that flag for imagemagick? But it is strange I did not experience that behaviour.

rootedsoftware commented 8 years ago

Sure. I think this might be tied to the image itself. I am using black and white images. Like the one I've attached here, the thumbnails are the ones being converted down to 8bit.

russ

rootedsoftware commented 8 years ago

Looks like I won't be able to do a pull request here. The underlying NPM module actually doesn't have this option available.

https://github.com/yourdeveloper/node-imagemagick/blob/master/imagemagick.js#L318

Also, this node repository says it is unmaintained and we should consider using Gm instead...