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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
kiki

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

Post 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
kiki

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

Post by kiki »

Ok i solved this myself.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post by fmw42 »

kiki wrote:Ok i solved this myself.

How?
kiki

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

Post 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
Post Reply