Hi,
I have an awful lot of files to convert.
Input is bmp and output should be 800x480, 8bit colour (custom palett -act file-), 71dpi(is this relevant??)
my problem is the custom palett. is there any way I can use this on "convert"??
Convert using Photoshops .act file
-
- Posts: 2
- Joined: 2013-01-09T01:38:41-07:00
- Authentication code: 6789
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert using Photoshops .act file
Not to my knowledge other than creating an image of those colors and using -remap. See http://www.imagemagick.org/Usage/quantize/#remap. You can add +dither to turn off the dithering.
-
- Posts: 2
- Joined: 2013-01-09T01:38:41-07:00
- Authentication code: 6789
Re: Convert using Photoshops .act file
Thanks for your answer!
I didnt understand the following:
- remap needs an image using this color table?
- remap needs an image containing all colours that I wish to be used?
I have a bmp file created using this act file. (It does not use the full color space, i guess)
This is how the pallet looks like in photoshop
https://www.dropbox.com/s/587tslzwz1f9tyt/pal_test.bmp
Now the problem is:
when I convert my picture, the size is smaller than expected
-> This works fine. The resulting size is ~1.15Mb
-> The resulting file is only 49kb, instead of 384kb
[/b]
"identify" can read the correct pallette information from the "example_file_with_pallet.bmp" which I have
How can I force 1 byte per pixel and this statical pallett?
I didnt understand the following:
- remap needs an image using this color table?
- remap needs an image containing all colours that I wish to be used?
I have a bmp file created using this act file. (It does not use the full color space, i guess)
This is how the pallet looks like in photoshop
https://www.dropbox.com/s/587tslzwz1f9tyt/pal_test.bmp
Now the problem is:
when I convert my picture, the size is smaller than expected
Code: Select all
convert original_picture.bmp -resize 800x480 step1.bmp
Code: Select all
convert step1.bmp -dither FloydSteinberg -remap example_file_with_pallet.bmp step2.bmp
[/b]
"identify" can read the correct pallette information from the "example_file_with_pallet.bmp" which I have
Code: Select all
0: (242, 51,102) #F23366 srgb(242,51,102)
1: (241,106,150) #F16A96 srgb(241,106,150)
2: (255, 0,255) #FF00FF magenta
3: ( 33, 33, 49) #212131 srgb(33,33,49)
4: ( 24, 24, 33) #181821 srgb(24,24,33)
5: (189,189,206) #BDBDCE srgb(189,189,206)
6: ( 0, 24,222) #0018DE srgb(0,24,222)
7: ( 0, 16,173) #0010AD srgb(0,16,173)
8: ( 0, 16,148) #001094 srgb(0,16,148)
9: ( 0, 24,206) #0018CE srgb(0,24,206)
10: ( 0, 24,181) #0018B5 srgb(0,24,181)
11: ( 0, 16,123) #00107B srgb(0,16,123)
12: ( 0, 8, 66) #000842 srgb(0,8,66)
13: ( 0, 33,231) #0021E7 srgb(0,33,231)
14: ( 0, 33,214) #0021D6 srgb(0,33,214)
15: ( 0, 16,107) #00106B srgb(0,16,107)
16: ( 0, 41,231) #0029E7 srgb(0,41,231)
17: ( 0, 8, 49) #000831 srgb(0,8,49)
18: ( 16, 24, 66) #101842 srgb(16,24,66)
19: ( 0, 41,214) #0029D6 srgb(0,41,214)
20: ( 0, 33,181) #0021B5 srgb(0,33,181)
21: ( 0, 16, 82) #001052 srgb(0,16,82)
22: ( 0, 41,181) #0029B5 srgb(0,41,181)
23: ( 0, 57,231) #0039E7 srgb(0,57,231)
24: ( 0, 51,204) #0033CC srgb(0,51,204)
25: ( 0, 8, 33) #000821 srgb(0,8,33)
26: ( 8, 33,115) #082173 srgb(8,33,115)
27: ( 16, 24, 49) #101831 srgb(16,24,49)
28: ( 0, 49,189) #0031BD srgb(0,49,189)
29: ( 8, 41,123) #08297B srgb(8,41,123)
30: ( 8, 33, 99) #082163 srgb(8,33,99)
31: ( 8, 16, 33) #081021 srgb(8,16,33)
32: ( 49, 57, 74) #31394A srgb(49,57,74)
33: ( 0, 49,148) #003194 srgb(0,49,148)
34: ( 8, 49,132) #083184 srgb(8,49,132)
35: ( 16, 41, 90) #10295A srgb(16,41,90)
36: ( 16, 33, 66) #102142 srgb(16,33,66)
37: ( 82,107,156) #526B9C srgb(82,107,156)
38: ( 33, 41, 57) #212939 srgb(33,41,57)
39: (165,173,189) #A5ADBD srgb(165,173,189)
40: ( 0, 74,206) #004ACE srgb(0,74,206)
41: ( 8, 57,148) #083994 srgb(8,57,148)
42: ( 24, 74,165) #184AA5 srgb(24,74,165)
43: ( 33, 82,173) #2152AD srgb(33,82,173)
44: ( 49, 99,189) #3163BD srgb(49,99,189)
45: ( 66, 99,156) #42639C srgb(66,99,156)
46: (123,156,214) #7B9CD6 srgb(123,156,214)
47: ( 8, 66,165) #0842A5 srgb(8,66,165)
48: ( 24, 82,173) #1852AD srgb(24,82,173)
49: ( 8, 24, 49) #081831 srgb(8,24,49)
50: (173,189,214) #ADBDD6 srgb(173,189,214)
51: ( 0, 74,189) #004ABD srgb(0,74,189)
52: ( 41, 99,189) #2963BD srgb(41,99,189)
53: ( 66,123,206) #427BCE srgb(66,123,206)
54: ( 24, 41, 66) #182942 srgb(24,41,66)
55: (107,140,189) #6B8CBD srgb(107,140,189)
56: (156,173,198) #9CADC6 srgb(156,173,198)
57: ( 0, 90,214) #005AD6 srgb(0,90,214)
58: ( 0, 66,156) #00429C srgb(0,66,156)
59: ( 0, 49,115) #003173 srgb(0,49,115)
60: ( 16, 41, 74) #10294A srgb(16,41,74)
61: ( 49,115,206) #3173CE srgb(49,115,206)
62: ( 49,107,189) #316BBD srgb(49,107,189)
63: ( 49,110,189) #316EBD srgb(49,110,189)
64: ( 16, 33, 57) #102139 srgb(16,33,57)
65: (115,132,156) #73849C srgb(115,132,156)
66: ( 0, 82,181) #0052B5 srgb(0,82,181)
67: ( 16, 74,148) #104A94 srgb(16,74,148)
68: ( 66,115,173) #4273AD srgb(66,115,173)
69: ( 82,123,173) #527BAD srgb(82,123,173)
70: ( 90,123,165) #5A7BA5 srgb(90,123,165)
71: (148,181,222) #94B5DE srgb(148,181,222)
72: ( 0,115,247) #0073F7 srgb(0,115,247)
73: ( 0, 90,189) #005ABD srgb(0,90,189)
74: ( 49,115,189) #3173BD srgb(49,115,189)
75: ( 66,132,206) #4284CE srgb(66,132,206)
76: ( 90,156,231) #5A9CE7 srgb(90,156,231)
77: ( 16, 24, 33) #101821 srgb(16,24,33)
78: ( 0,107,214) #006BD6 srgb(0,107,214)
79: ( 0, 99,198) #0063C6 srgb(0,99,198)
80: ( 16, 85,156) #10559C srgb(16,85,156)
81: ( 16, 82,148) #105294 srgb(16,82,148)
82: ( 16, 57, 99) #103963 srgb(16,57,99)
83: ( 8, 24, 41) #081829 srgb(8,24,41)
84: ( 66,140,214) #428CD6 srgb(66,140,214)
85: ( 66,134,206) #4286CE srgb(66,134,206)
86: ( 8, 16, 24) #081018 srgb(8,16,24)
87: ( 82,156,231) #529CE7 srgb(82,156,231)
88: ( 90,148,206) #5A94CE srgb(90,148,206)
89: ( 33, 49, 66) #213142 srgb(33,49,66)
90: (107,140,173) #6B8CAD srgb(107,140,173)
91: (123,156,189) #7B9CBD srgb(123,156,189)
92: (206,214,222) #CED6DE srgb(206,214,222)
93: ( 0,132,255) #0084FF srgb(0,132,255)
94: ( 8, 33, 57) #082139 srgb(8,33,57)
95: ( 24, 41, 57) #182939 srgb(24,41,57)
96: ( 24, 33, 41) #182129 srgb(24,33,41)
97: (140,165,189) #8CA5BD srgb(140,165,189)
98: (115,132,148) #738494 srgb(115,132,148)
99: (156,165,173) #9CA5AD srgb(156,165,173)
100: ( 0,140,255) #008CFF srgb(0,140,255)
101: ( 0, 57,107) #00396B srgb(0,57,107)
102: ( 0, 49, 90) #00315A srgb(0,49,90)
103: ( 0, 41, 74) #00294A srgb(0,41,74)
104: ( 99,165,222) #63A5DE srgb(99,165,222)
105: ( 0,132,231) #0084E7 srgb(0,132,231)
106: ( 0,123,214) #007BD6 srgb(0,123,214)
107: ( 0, 99,173) #0063AD srgb(0,99,173)
108: ( 0, 74,132) #004A84 srgb(0,74,132)
109: ( 90,165,222) #5AA5DE srgb(90,165,222)
110: (107,181,239) #6BB5EF srgb(107,181,239)
111: ( 57, 90,115) #395A73 srgb(57,90,115)
112: ( 33,115,173) #2173AD srgb(33,115,173)
113: ( 82,165,222) #52A5DE srgb(82,165,222)
114: ( 33, 57, 74) #21394A srgb(33,57,74)
115: (115,198,255) #73C6FF srgb(115,198,255)
116: ( 33,156,231) #219CE7 srgb(33,156,231)
117: ( 8, 33, 49) #082131 srgb(8,33,49)
118: (181,206,222) #B5CEDE srgb(181,206,222)
119: ( 0,148,231) #0094E7 srgb(0,148,231)
120: ( 0,140,222) #008CDE srgb(0,140,222)
121: ( 16,165,247) #10A5F7 srgb(16,165,247)
122: ( 0,156,239) #009CEF srgb(0,156,239)
123: ( 0,123,189) #007BBD srgb(0,123,189)
124: ( 24, 57, 74) #18394A srgb(24,57,74)
125: ( 90,189,239) #5ABDEF srgb(90,189,239)
126: (115,209,255) #73D1FF srgb(115,209,255)
127: ( 66, 82, 90) #42525A srgb(66,82,90)
128: ( 0,165,239) #00A5EF srgb(0,165,239)
129: ( 0, 74,107) #004A6B srgb(0,74,107)
130: ( 0, 57, 82) #003952 srgb(0,57,82)
131: ( 86,184,228) #56B8E4 srgb(86,184,228)
132: ( 90,107,115) #5A6B73 srgb(90,107,115)
133: (214,231,239) #D6E7EF srgb(214,231,239)
134: ( 0,165,231) #00A5E7 srgb(0,165,231)
135: ( 0,163,228) #00A3E4 srgb(0,163,228)
136: ( 0, 82,115) #005273 srgb(0,82,115)
137: ( 0,181,239) #00B5EF srgb(0,181,239)
138: ( 0, 90,115) #005A73 srgb(0,90,115)
139: ( 0,204,255) #00CCFF srgb(0,204,255)
140: ( 0,189,231) #00BDE7 srgb(0,189,231)
141: ( 0, 90,107) #005A6B srgb(0,90,107)
142: ( 0,222,247) #00DEF7 srgb(0,222,247)
143: ( 49, 66, 66) #314242 srgb(49,66,66)
144: ( 74, 99, 99) #4A6363 srgb(74,99,99)
145: ( 66, 74, 74) #424A4A srgb(66,74,74)
146: ( 0,153, 51) #009933 srgb(0,153,51)
147: ( 0,204, 51) #00CC33 srgb(0,204,51)
148: ( 16, 82, 24) #105218 srgb(16,82,24)
149: ( 0,132, 0) #008400 srgb(0,132,0)
150: ( 0,115, 0) #007300 srgb(0,115,0)
151: ( 0, 82, 0) #005200 srgb(0,82,0)
152: ( 0, 51, 0) #003300 srgb(0,51,0)
153: ( 0, 41, 0) #002900 srgb(0,41,0)
154: ( 0, 24, 0) #001800 srgb(0,24,0)
155: ( 8,148, 8) #089408 srgb(8,148,8)
156: ( 24,173, 24) #18AD18 srgb(24,173,24)
157: ( 16, 82, 16) #105210 srgb(16,82,16)
158: ( 41,181, 41) #29B529 srgb(41,181,41)
159: ( 51,153, 51) #339933 srgb(51,153,51)
160: ( 25,177, 11) #19B10B srgb(25,177,11)
161: ( 46, 99, 39) #2E6327 srgb(46,99,39)
162: ( 49,132, 33) #318421 srgb(49,132,33)
163: ( 82,181, 49) #52B531 srgb(82,181,49)
164: ( 68,133, 47) #44852F srgb(68,133,47)
165: ( 91,165, 54) #5BA536 srgb(91,165,54)
166: (123,189, 74) #7BBD4A srgb(123,189,74)
167: ( 98,209, 14) #62D10E srgb(98,209,14)
168: (179,244, 92) #B3F45C srgb(179,244,92)
169: (169,246, 22) #A9F616 srgb(169,246,22)
170: (204,255,102) #CCFF66 srgb(204,255,102)
171: (189,198,123) #BDC67B srgb(189,198,123)
172: (239,239, 49) #EFEF31 srgb(239,239,49)
173: (255,255, 90) #FFFF5A srgb(255,255,90)
174: (255,255,173) #FFFFAD srgb(255,255,173)
175: (255,255,239) #FFFFEF srgb(255,255,239)
176: (165,156, 99) #A59C63 srgb(165,156,99)
177: (189,173,107) #BDAD6B srgb(189,173,107)
178: (247,231,173) #F7E7AD srgb(247,231,173)
179: (148,132, 82) #948452 srgb(148,132,82)
180: (206,156, 16) #CE9C10 srgb(206,156,16)
181: ( 66, 57, 33) #423921 srgb(66,57,33)
182: (255,222,132) #FFDE84 srgb(255,222,132)
183: (254,191, 32) #FEBF20 srgb(254,191,32)
184: ( 99, 82, 41) #635229 srgb(99,82,41)
185: (123,107, 66) #7B6B42 srgb(123,107,66)
186: (255,222,140) #FFDE8C srgb(255,222,140)
187: (239,206,132) #EFCE84 srgb(239,206,132)
188: (247,225,173) #F7E1AD srgb(247,225,173)
189: ( 57, 49, 33) #393121 srgb(57,49,33)
190: (239,206,140) #EFCE8C srgb(239,206,140)
191: (239,181, 90) #EFB55A srgb(239,181,90)
192: (239,140, 0) #EF8C00 srgb(239,140,0)
193: (228,122, 0) #E47A00 srgb(228,122,0)
194: (222,115, 0) #DE7300 srgb(222,115,0)
195: (253,161, 61) #FDA13D srgb(253,161,61)
196: (239,119, 0) #EF7700 srgb(239,119,0)
197: ( 66, 33, 0) #422100 srgb(66,33,0)
198: (239,115, 0) #EF7300 srgb(239,115,0)
199: (189, 90, 0) #BD5A00 srgb(189,90,0)
200: (140, 66, 0) #8C4200 srgb(140,66,0)
201: ( 33, 16, 0) #211000 srgb(33,16,0)
202: (165, 74, 0) #A54A00 srgb(165,74,0)
203: (123, 57, 0) #7B3900 srgb(123,57,0)
204: (222, 96, 0) #DE6000 srgb(222,96,0)
205: (255,189,140) #FFBD8C srgb(255,189,140)
206: ( 99, 41, 0) #632900 srgb(99,41,0)
207: (189, 74, 0) #BD4A00 srgb(189,74,0)
208: ( 49, 16, 0) #311000 srgb(49,16,0)
209: (255,165,132) #FFA584 srgb(255,165,132)
210: (173, 57, 24) #AD3918 srgb(173,57,24)
211: (181, 57, 33) #B53921 srgb(181,57,33)
212: (239, 99, 74) #EF634A srgb(239,99,74)
213: (255, 33, 0) #FF2100 srgb(255,33,0)
214: (173, 44, 24) #AD2C18 srgb(173,44,24)
215: (239,153,140) #EF998C srgb(239,153,140)
216: (206, 82, 66) #CE5242 srgb(206,82,66)
217: (239, 86, 74) #EF564A srgb(239,86,74)
218: (206, 70, 66) #CE4642 srgb(206,70,66)
219: (153, 0, 0) #990000 srgb(153,0,0)
220: (132, 0, 0) #840000 srgb(132,0,0)
221: (123, 0, 0) #7B0000 srgb(123,0,0)
222: ( 99, 0, 0) #630000 srgb(99,0,0)
223: ( 66, 0, 0) #420000 srgb(66,0,0)
224: ( 33, 0, 0) #210000 srgb(33,0,0)
225: (189, 16, 16) #BD1010 srgb(189,16,16)
226: (173, 16, 16) #AD1010 srgb(173,16,16)
227: (198, 33, 33) #C62121 srgb(198,33,33)
228: (214, 49, 49) #D63131 srgb(214,49,49)
229: (222, 66, 66) #DE4242 srgb(222,66,66)
230: (239, 82, 82) #EF5252 srgb(239,82,82)
231: (255,255,255) #FFFFFF white
232: (247,247,247) #F7F7F7 grey97
233: (239,239,239) #EFEFEF srgb(239,239,239)
234: (231,231,231) #E7E7E7 srgb(231,231,231)
235: (222,222,222) #DEDEDE grey87
236: (204,204,204) #CCCCCC grey80
237: (198,198,198) #C6C6C6 srgb(198,198,198)
238: (189,189,189) #BDBDBD grey74
239: (181,181,181) #B5B5B5 grey71
240: (165,165,165) #A5A5A5 srgb(165,165,165)
241: (156,156,156) #9C9C9C grey61
242: (148,148,148) #949494 grey58
243: (132,132,132) #848484 srgb(132,132,132)
244: (123,123,123) #7B7B7B srgb(123,123,123)
245: (115,115,115) #737373 grey45
246: ( 99, 99, 99) #636363 grey39
247: ( 90, 90, 90) #5A5A5A srgb(90,90,90)
248: ( 82, 82, 82) #525252 grey32
249: ( 66, 66, 66) #424242 grey26
250: ( 57, 57, 57) #393939 srgb(57,57,57)
251: ( 51, 51, 51) #333333 grey20
252: ( 41, 41, 41) #292929 grey16
253: ( 33, 33, 33) #212121 grey13
254: ( 24, 24, 24) #181818 srgb(24,24,24)
How can I force 1 byte per pixel and this statical pallett?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Convert using Photoshops .act file
I am not a bmp expert. But try
convert original_picture.bmp -resize 800x480 +dither -remap pal_test.bmp -colors 256 result.bmp
or perhaps the same number of colors in your color map
or perhaps
convert original_picture.bmp -resize 800x480 colors 256 +dither -remap pal_test.bmp -result.bmp
see http://www.imagemagick.org/Usage/formats/#bmp
You may need to use an older format for BMP
convert original_picture.bmp -resize 800x480 +dither -remap pal_test.bmp -depth 8 -type palette BMP3:result.bmp
or BMP2:result.bmp
convert original_picture.bmp -resize 800x480 +dither -remap pal_test.bmp -colors 256 result.bmp
or perhaps the same number of colors in your color map
or perhaps
convert original_picture.bmp -resize 800x480 colors 256 +dither -remap pal_test.bmp -result.bmp
see http://www.imagemagick.org/Usage/formats/#bmp
You may need to use an older format for BMP
convert original_picture.bmp -resize 800x480 +dither -remap pal_test.bmp -depth 8 -type palette BMP3:result.bmp
or BMP2:result.bmp