I need to convert some images to 6bpc, which is to say that I want to zero the last 2 bits of each each RGB channel for preview on a reduced color display.
How can I do this with imagemagick?
Many thanks!
8bit per channel to 6bpc (RGB)
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: 8bit per channel to 6bpc (RGB)
Level white to a value of 2^6-1 then +level back again. That should do the job.
convert image.png -level 0,63 +level 0,63 result.png
See 'Quantum Rounding' which is typically something to avoid, but in your case you want to do.
http://www.imagemagick.org/Usage/basics ... um_effects
convert image.png -level 0,63 +level 0,63 result.png
See 'Quantum Rounding' which is typically something to avoid, but in your case you want to do.
http://www.imagemagick.org/Usage/basics ... um_effects
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/