Page 1 of 1

Convert picture to 256 color but only 7 in one horiz. line

Posted: 2008-12-25T07:31:37-07:00
by kiki
Hi to everyone!

My question:

There is possible to convert picture with this limitations:
- maximum usage colors per one horizontal line = 7 colors
- maximum usage colors per picture = 256 colors

Re: Convert picture to 256 color but only 7 in one horiz. line

Posted: 2008-12-28T14:37:24-07:00
by kiki
Ok i solved this myself.

Re: Convert picture to 256 color but only 7 in one horiz. line

Posted: 2008-12-28T17:15:31-07:00
by fmw42
kiki wrote:Ok i solved this myself.

How?

Re: Convert picture to 256 color but only 7 in one horiz. line

Posted: 2008-12-29T02:41:45-07:00
by kiki
fmw42 wrote:
How?
-ok i have 168x100 image
-i split image by use crop command to 100 bmp files 168x1 bmp
-convert this all 100 bmp files with map palette (256 col) and with only 7 color at once
-merge converted files to one by using montage, tile and geometry functions.

convert -crop 168x1 col.bmp tiles_%05d.bmp
convert tiles_*.bmp +dither none -map test.png -colors 7 tile_%05d.bmp
montage tile_*.bmp -tile 1x100 -geometry 168x1 file-end.png

I don't know maybe there is a easy way but no one answer my questions and i dig in documentations myself - lots of thinking :) - and effect you see above :D

---
sorry for my english