masevein Posted October 14, 2020 Posted October 14, 2020 In photoshop I can export images under the "Save for Web (Legacy)" Im trying to covert photos into 7 colors that can be supported for color e-paper from wave share display. Please see below for the instructions im trying to recreate in affinity photo. https://www.waveshare.com/wiki/E-Paper_Floyd-Steinberg Quote
Staff MEB Posted October 14, 2020 Staff Posted October 14, 2020 Hi @masevein, Welcome to Affinity Forums Currently we don't support importing/loading colour tables/custom palettes, so this is not possible in Affinity Photo at the moment. Quote A Guide to Learning Affinity Software
masevein Posted October 14, 2020 Author Posted October 14, 2020 1 hour ago, MEB said: Hi @masevein, Welcome to Affinity Forums Currently we don't support importing/loading colour tables/custom palettes, so this is not possible in Affinity Photo at the moment. Thanks! Is there a way to reduce the colors to 7 and then I can change the colors to the ones specified in that guide? Quote
kirkt Posted October 14, 2020 Posted October 14, 2020 The seven RGB colors in the color table are: (R,G,B) 0,0,0 0,0,255 255,0,0 0,255,0 255,128,0 255,255,0 255,255,255 You can perform Floyd-Steinberg dithering in ImageMagick using the following command: convert original_image.png -dither FloydSteinberg -remap colortable.gif dithered_image.gif where "original_image.png" is the full-color image you want to dither, "dithered_image.gif" is the dithered output of the operation, and "colortable.gif" is a gif image that contains 7 patches of color with the listed colors above - it instructs the algorithm to reduce the original image to a dithered one using only those colors. I have attached a gif (4px wide by 28 pixels tall) of these 7 colors for your use. I will say that the results appear more "dithered" than the same results in Photoshop with the n color ACT color table in the link you provided. Reducing the original image to one with 7 colors will not perform dithering, which is an inherent part of the process to maintain the overall appearance of image brightness in the dithered output. Even if you try to "Posterize" the image to 7 levels, there will be more than 7 colors in the resulting posterized output. See more here: https://legacy.imagemagick.org/Usage/quantize/#dither in the section entitled "Dithering using pre-defined color maps." Kirk Paul Mc 1 Quote
masevein Posted October 15, 2020 Author Posted October 15, 2020 Wow thank you all! I tried Image Magick and it worked great at 80% dithered thank you Kirk! I can’t believe that GIMP has this option and not Affinity Photo. kirkt 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.