Here is the (some) of the code im running with the commandline.
This ends up with too many colors in some of these chunks, which is not desired.
Code: Select all
convert test.png -quantize YIQ -dither FloydSteinberg -remap palette.png test_tmp.png
convert test_tmp.png +dither `
-region 2x3+0+0 -colors 2 +dither -remap palette.png
-region 2x3+0.0+3.0 -colors 2 +dither -remap palette.png `
-region 2x3+0.0+6.0 -colors 2 +dither -remap palette.png `
-region 2x3+0.0+9.0 -colors 2 +dither -remap palette.png `
*and so on*
test_tmp.png
Edit, added expected output:
Using code in my second post in this thread.
Example image with valid output


With palette

And a image with 20x30 chunks for it to be easier to see how it's supposed to look.

The only problem now is that the command is taking to long to run.
Edit, working and accepted solution
Code: Select all
convert `
test.png `
-quantize YIQ -dither FloydSteinberg `
-remap palette.png +dither `
-crop 2x3 `
-colors 2 `
-remap palette.png `
-layers merge `
t5.png