meteor-uploads icon indicating copy to clipboard operation
meteor-uploads copied to clipboard

The images are being set to 8bit

Open rootedsoftware opened this issue 9 years ago • 3 comments
trafficstars

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.

rootedsoftware avatar Mar 10 '16 04:03 rootedsoftware

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

tomitrescak avatar Mar 15 '16 08:03 tomitrescak

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 avatar Mar 15 '16 14:03 rootedsoftware

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...

rootedsoftware avatar Mar 15 '16 16:03 rootedsoftware