Page 1 of 1
Convert and Dither image to support 3 color epaper display
Posted: 2019-07-23T07:47:35-07:00
by rlightner
I'm working with an epaper display that supports Black/White/(Red / Yellow) and would like to dither a full color image to just those 3 colors for display. I have no problems dithering to 2 colors (Black/White), but having some issues with this third color. Anyone done this or can point me in the right direction? Thanks!
Re: Convert and Dither image to support 3 color epaper display
Posted: 2019-07-23T08:44:29-07:00
by snibgo
What version of IM, on what platform?
You can easily remap to any number of colours, with dithering. For example:
Code: Select all
magick xc:black xc:white xc:red +append +repage +write mpr:MAP +delete toes.png -remap mpr:MAP dith3.png
Re: Convert and Dither image to support 3 color epaper display
Posted: 2019-07-23T08:46:22-07:00
by rlightner
I'll be using convert via a firebase function.
Re: Convert and Dither image to support 3 color epaper display
Posted: 2019-07-23T10:51:53-07:00
by snibgo
I know nothing about firebase. You may need "convert" instead of "magick".
Re: Convert and Dither image to support 3 color epaper display
Posted: 2019-07-23T10:52:56-07:00
by rlightner
Yup, I was able to use convert. Thank you very much for the assistance! I added -dither FloydSteinberg which cleaned up my test image as well.