Search found 5 matches
- 2016-03-13T05:34:07-07:00
- Forum: Users
- Topic: Dithering a 2x3 region with two best colors from a palette
- Replies: 10
- Views: 3077
Re: Dithering a 2x3 region with two best colors from a palette
Modified your code a little bit, and it seems to be working (with similar output as in main post). (Added dithering and made the image have only palette colors) convert ` test.png ` -quantize YIQ -dither FloydSteinberg ` -remap palette.png +dither ` -crop 2x3 ` -colors 2 ` -remap palette.png ...
- 2016-03-13T04:24:00-07:00
- Forum: Users
- Topic: Dithering a 2x3 region with two best colors from a palette
- Replies: 10
- Views: 3077
Re: Dithering a 2x3 region with two best colors from a palette
Just a stripe of 16 colors.
Also tried the memory structure for palette, takes about the same time to run (region code).
- 2016-03-13T04:09:50-07:00
- Forum: Users
- Topic: Dithering a 2x3 region with two best colors from a palette
- Replies: 10
- Views: 3077
Re: Dithering a 2x3 region with two best colors from a palette
Regions can take floats, atleast in the specified version. The thing is, when i use the crop code, it's extremely slow taking several minutes. While the region code is near instant, taking at most a few seconds. convert test.png -quantize YIQ -dither Riemersma -remap palette.png test_tmp.png convert ...
- 2016-03-12T15:58:54-07:00
- Forum: Users
- Topic: Dithering a 2x3 region with two best colors from a palette
- Replies: 10
- Views: 3077
Re: Dithering a 2x3 region with two best colors from a palette
I am aware that region only takes the top left corner, thats why there is duplicates of that line with offsets for the rest of the image (added to code section). The command i am running has 2500 or so lines, generated by another script. I am attempting at converting the image to teletext, for ...
- 2016-03-12T15:11:59-07:00
- Forum: Users
- Topic: Dithering a 2x3 region with two best colors from a palette
- Replies: 10
- Views: 3077
Dithering a 2x3 region with two best colors from a palette
I need to chunk the image up in 2x3s and then limited these chunks to max two colors from a specified palette. 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. convert test.png -quantize YIQ -dither ...