How to change the tone of an image.
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
How to change the tone of an image.
Hello All,
I am trying to change the tone of an image.
Basically i want to change tone of an image to the below tones
B&W
Cyanotype
Duotone
Silver
Palladium
Selenium and
Sepia
I tried so many commands but none of them worked . So please tell me if we any command for that?
I am trying to change the tone of an image.
Basically i want to change tone of an image to the below tones
B&W
Cyanotype
Duotone
Silver
Palladium
Selenium and
Sepia
I tried so many commands but none of them worked . So please tell me if we any command for that?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to change the tone of an image.
Not sure exactly what you want without examples. But see
http://www.imagemagick.org/Usage/color_mods/#tint
http://www.imagemagick.org/Usage/color_mods/#sepia-tone
http://www.imagemagick.org/Usage/color_mods/#duotone
http://www.imagemagick.org/Usage/color_mods/#tint_diy
http://www.imagemagick.org/Usage/color_mods/#modulate
http://www.imagemagick.org/Usage/color_mods/#clut
If you are on Linux/Mac, you might try some of my scripts at the link below:
color2gray
coloration
graytoning
tintilize
tricolorize
http://www.imagemagick.org/Usage/color_mods/#tint
http://www.imagemagick.org/Usage/color_mods/#sepia-tone
http://www.imagemagick.org/Usage/color_mods/#duotone
http://www.imagemagick.org/Usage/color_mods/#tint_diy
http://www.imagemagick.org/Usage/color_mods/#modulate
http://www.imagemagick.org/Usage/color_mods/#clut
If you are on Linux/Mac, you might try some of my scripts at the link below:
color2gray
coloration
graytoning
tintilize
tricolorize
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
Re: How to change the tone of an image.
Sorry for being very shot.
So actually i work for a photography company. Where i need change the toning for some images. Right now i am working on Changing the image tone to Duotone. I have the RGB value for this Duotone as
("0,0,0 0,0,0 0,0,2 0,0,20 0,0,38 0,0,50 0,0,35 0,0,53 0,0,35 0,2,33 0,0,64 0,2,58 0,4,66 0,6,64 0,7,63 0,10,61 0,13,64 0,16,57 0,16,67 0,17,73 0,20,73 0,21,75 0,23,75 0,22,79 0,28,76 0,28,74 0,28,89 0,33,84 0,33,89 0,35,85 0,37,92 0,39,89 0,39,92 0,44,91 0,45,92 12,38,94 0,45,104 4,46,97 18,40,98 6,48,99 17,47,93 7,52,98 9,54,94 13,51,111 7,57,111 10,58,109 15,58,110 16,59,111 13,64,105 16,64,109 16,64,118 17,66,113 22,65,118 23,66,119 17,72,120 27,72,110 28,73,110 23,76,113 30,75,112 37,76,99 29,77,122 37,77,115 38,76,128 45,81,97 33,84,121 38,83,124 33,85,134 44,87,112 47,87,113 66,79,120 45,90,129 47,92,121 47,92,129 45,93,140 50,95,125 52,95,130 51,98,126 52,97,137 51,100,136 57,98,142 72,99,111 65,103,125 52,107,142 76,103,117 72,106,123 68,106,137 74,106,137 70,110,130 66,110,149 72,113,130 72,112,147 74,114,138 77,115,136 82,114,138 79,117,143 76,120,144 82,119,141 92,117,141 85,121,142 79,123,157 89,124,138 92,122,153 84,126,157 119,120,111 89,129,150 94,128,151 95,130,144 100,129,146 89,135,159 98,133,152 104,135,143 105,136,144 112,134,141 110,136,147 109,138,148 112,139,144 106,140,166 118,139,149 112,142,155 129,140,132 133,139,137 111,147,162 115,147,163 129,144,148 114,149,173 120,150,161 132,149,149 133,149,154 138,150,146 133,152,156 141,153,138 135,154,156 142,152,157 133,155,173 136,156,170 139,158,155 146,157,154 143,159,159 138,163,163 124,166,189 150,162,157 143,161,186 152,164,164 138,169,179 158,165,155 157,167,157 159,167,159 150,170,179 159,169,164 156,171,171 147,177,177 168,171,157 157,173,181 164,172,180 162,179,161 171,174,164 163,178,182 170,179,168 162,181,182 164,180,189 177,180,166 178,182,161 171,182,186 180,184,162 179,184,172 188,183,157 184,185,168 181,188,170 188,188,163 186,188,169 183,193,170 192,188,172 195,191,167 200,188,164 185,194,193 193,195,174 189,195,188 197,195,179 200,196,172 199,196,182 202,197,179 204,197,176 203,200,174 194,202,197 202,202,183 209,201,180 209,202,180 209,202,193 210,203,188 210,206,187 211,206,191 196,209,223 202,212,199 215,208,192 213,210,193 209,213,199 215,213,194 222,212,186 222,213,188 219,215,195 221,215,197 221,217,195 224,216,196 216,221,200 222,218,209 223,221,198 227,217,215 217,226,203 227,223,204 228,222,215 231,224,202 222,228,212 221,227,230 227,231,201 228,231,200 226,232,212 229,231,219 225,231,233 237,231,214 236,232,215 223,237,237 213,238,255 226,242,222 228,238,240 249,233,214 227,242,239 241,240,222 229,244,236 237,242,236 231,244,246 226,246,255 242,242,246 234,249,236 241,244,255 230,252,248 252,246,230 226,254,255 248,249,237 247,249,245 241,253,254 238,255,255 236,255,255 243,255,255 239,255,255 239,255,255 240,255,255 240,255,255 241,255,255 255,255,255 247,255,255 255,255,255 252,255,255 255,255,255 255,255,255 255,255,255 255,255,255").
How can i use this RGB value in a command? So could you please help me how to use this RGB value?
So actually i work for a photography company. Where i need change the toning for some images. Right now i am working on Changing the image tone to Duotone. I have the RGB value for this Duotone as
("0,0,0 0,0,0 0,0,2 0,0,20 0,0,38 0,0,50 0,0,35 0,0,53 0,0,35 0,2,33 0,0,64 0,2,58 0,4,66 0,6,64 0,7,63 0,10,61 0,13,64 0,16,57 0,16,67 0,17,73 0,20,73 0,21,75 0,23,75 0,22,79 0,28,76 0,28,74 0,28,89 0,33,84 0,33,89 0,35,85 0,37,92 0,39,89 0,39,92 0,44,91 0,45,92 12,38,94 0,45,104 4,46,97 18,40,98 6,48,99 17,47,93 7,52,98 9,54,94 13,51,111 7,57,111 10,58,109 15,58,110 16,59,111 13,64,105 16,64,109 16,64,118 17,66,113 22,65,118 23,66,119 17,72,120 27,72,110 28,73,110 23,76,113 30,75,112 37,76,99 29,77,122 37,77,115 38,76,128 45,81,97 33,84,121 38,83,124 33,85,134 44,87,112 47,87,113 66,79,120 45,90,129 47,92,121 47,92,129 45,93,140 50,95,125 52,95,130 51,98,126 52,97,137 51,100,136 57,98,142 72,99,111 65,103,125 52,107,142 76,103,117 72,106,123 68,106,137 74,106,137 70,110,130 66,110,149 72,113,130 72,112,147 74,114,138 77,115,136 82,114,138 79,117,143 76,120,144 82,119,141 92,117,141 85,121,142 79,123,157 89,124,138 92,122,153 84,126,157 119,120,111 89,129,150 94,128,151 95,130,144 100,129,146 89,135,159 98,133,152 104,135,143 105,136,144 112,134,141 110,136,147 109,138,148 112,139,144 106,140,166 118,139,149 112,142,155 129,140,132 133,139,137 111,147,162 115,147,163 129,144,148 114,149,173 120,150,161 132,149,149 133,149,154 138,150,146 133,152,156 141,153,138 135,154,156 142,152,157 133,155,173 136,156,170 139,158,155 146,157,154 143,159,159 138,163,163 124,166,189 150,162,157 143,161,186 152,164,164 138,169,179 158,165,155 157,167,157 159,167,159 150,170,179 159,169,164 156,171,171 147,177,177 168,171,157 157,173,181 164,172,180 162,179,161 171,174,164 163,178,182 170,179,168 162,181,182 164,180,189 177,180,166 178,182,161 171,182,186 180,184,162 179,184,172 188,183,157 184,185,168 181,188,170 188,188,163 186,188,169 183,193,170 192,188,172 195,191,167 200,188,164 185,194,193 193,195,174 189,195,188 197,195,179 200,196,172 199,196,182 202,197,179 204,197,176 203,200,174 194,202,197 202,202,183 209,201,180 209,202,180 209,202,193 210,203,188 210,206,187 211,206,191 196,209,223 202,212,199 215,208,192 213,210,193 209,213,199 215,213,194 222,212,186 222,213,188 219,215,195 221,215,197 221,217,195 224,216,196 216,221,200 222,218,209 223,221,198 227,217,215 217,226,203 227,223,204 228,222,215 231,224,202 222,228,212 221,227,230 227,231,201 228,231,200 226,232,212 229,231,219 225,231,233 237,231,214 236,232,215 223,237,237 213,238,255 226,242,222 228,238,240 249,233,214 227,242,239 241,240,222 229,244,236 237,242,236 231,244,246 226,246,255 242,242,246 234,249,236 241,244,255 230,252,248 252,246,230 226,254,255 248,249,237 247,249,245 241,253,254 238,255,255 236,255,255 243,255,255 239,255,255 239,255,255 240,255,255 240,255,255 241,255,255 255,255,255 247,255,255 255,255,255 252,255,255 255,255,255 255,255,255 255,255,255 255,255,255").
How can i use this RGB value in a command? So could you please help me how to use this RGB value?
- GreenKoopa
- Posts: 457
- Joined: 2010-11-04T17:24:08-07:00
- Authentication code: 8675308
Re: How to change the tone of an image.
I see an array of 256 RGB values. Is this a look-up table? See -clut.
http://www.imagemagick.org/Usage/color_mods/#color_lut
http://www.imagemagick.org/Usage/color_mods/#color_lut
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
Re: How to change the tone of an image.
I am not sure whether its a look up table or not.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to change the tone of an image.
If this is a look-up table, you will need to convert it into a 1D image probably using NetPBM format and then apply it using -clut.
convert image 1Dlutimage -clut result
see
http://netpbm.sourceforge.net/doc/
probably PPM plain format or PAM
convert image 1Dlutimage -clut result
see
http://netpbm.sourceforge.net/doc/
probably PPM plain format or PAM
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to change the tone of an image.
I think you need to find out.helloworld wrote:I am not sure whether its a look up table or not.
Without clearer explanation, I am not sure we can help much. You may be better off just using the IM commands listed above in the links.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to change the tone of an image.
Assuming the data represents a clut, we can reformat it into PPM.
Save that as (for example) "duoclut.ppm".
Than we can use it:
Code: Select all
P3
255 1
255
0,0,0
0,0,0
0,0,2
0,0,20
0,0,38
0,0,50
0,0,35
0,0,53
0,0,35
0,2,33
0,0,64
0,2,58
0,4,66
0,6,64
0,7,63
0,10,61
0,13,64
0,16,57
0,16,67
0,17,73
0,20,73
0,21,75
0,23,75
0,22,79
0,28,76
0,28,74
0,28,89
0,33,84
0,33,89
0,35,85
0,37,92
0,39,89
0,39,92
0,44,91
0,45,92
12,38,94
0,45,104
4,46,97
18,40,98
6,48,99
17,47,93
7,52,98
9,54,94
13,51,111
7,57,111
10,58,109
15,58,110
16,59,111
13,64,105
16,64,109
16,64,118
17,66,113
22,65,118
23,66,119
17,72,120
27,72,110
28,73,110
23,76,113
30,75,112
37,76,99
29,77,122
37,77,115
38,76,128
45,81,97
33,84,121
38,83,124
33,85,134
44,87,112
47,87,113
66,79,120
45,90,129
47,92,121
47,92,129
45,93,140
50,95,125
52,95,130
51,98,126
52,97,137
51,100,136
57,98,142
72,99,111
65,103,125
52,107,142
76,103,117
72,106,123
68,106,137
74,106,137
70,110,130
66,110,149
72,113,130
72,112,147
74,114,138
77,115,136
82,114,138
79,117,143
76,120,144
82,119,141
92,117,141
85,121,142
79,123,157
89,124,138
92,122,153
84,126,157
119,120,111
89,129,150
94,128,151
95,130,144
100,129,146
89,135,159
98,133,152
104,135,143
105,136,144
112,134,141
110,136,147
109,138,148
112,139,144
106,140,166
118,139,149
112,142,155
129,140,132
133,139,137
111,147,162
115,147,163
129,144,148
114,149,173
120,150,161
132,149,149
133,149,154
138,150,146
133,152,156
141,153,138
135,154,156
142,152,157
133,155,173
136,156,170
139,158,155
146,157,154
143,159,159
138,163,163
124,166,189
150,162,157
143,161,186
152,164,164
138,169,179
158,165,155
157,167,157
159,167,159
150,170,179
159,169,164
156,171,171
147,177,177
168,171,157
157,173,181
164,172,180
162,179,161
171,174,164
163,178,182
170,179,168
162,181,182
164,180,189
177,180,166
178,182,161
171,182,186
180,184,162
179,184,172
188,183,157
184,185,168
181,188,170
188,188,163
186,188,169
183,193,170
192,188,172
195,191,167
200,188,164
185,194,193
193,195,174
189,195,188
197,195,179
200,196,172
199,196,182
202,197,179
204,197,176
203,200,174
194,202,197
202,202,183
209,201,180
209,202,180
209,202,193
210,203,188
210,206,187
211,206,191
196,209,223
202,212,199
215,208,192
213,210,193
209,213,199
215,213,194
222,212,186
222,213,188
219,215,195
221,215,197
221,217,195
224,216,196
216,221,200
222,218,209
223,221,198
227,217,215
217,226,203
227,223,204
228,222,215
231,224,202
222,228,212
221,227,230
227,231,201
228,231,200
226,232,212
229,231,219
225,231,233
237,231,214
236,232,215
223,237,237
213,238,255
226,242,222
228,238,240
249,233,214
227,242,239
241,240,222
229,244,236
237,242,236
231,244,246
226,246,255
242,242,246
234,249,236
241,244,255
230,252,248
252,246,230
226,254,255
248,249,237
247,249,245
241,253,254
238,255,255
236,255,255
243,255,255
239,255,255
239,255,255
240,255,255
240,255,255
241,255,255
255,255,255
247,255,255
255,255,255
252,255,255
255,255,255
255,255,255
255,255,255
255,255,255
Than we can use it:
Code: Select all
convert x.png -modulate 100,0,100 duoclut.ppm -clut out.png
snibgo's IM pages: im.snibgo.com
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
Re: How to change the tone of an image.
Thanks a lot snibgo.
I know its a weird question but do we have any replaceable functions for this in Graphics Magick? like for Clut and Modulate?
I know its a weird question but do we have any replaceable functions for this in Graphics Magick? like for Clut and Modulate?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to change the tone of an image.
helloworld wrote:Thanks a lot snibgo.
I know its a weird question but do we have any replaceable functions for this in Graphics Magick? like for Clut and Modulate?
GraphicsMagick was an ancient clone of IM that has not changed much over time. It likely has modulate, but I doubt it has -clut.
To be sure you would need to check on their forums or documentation.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to change the tone of an image.
I know nothing about Graphics Magick.
Incidentally, I didn't need to break the input into separate lines. I did that just so I could more easily see the values.
Which gets me thinking ... such a clut might have come from a simple scan of a conventional silver photographic print, chemically toned. I should dig through my old boxes of photos, and experiment.
Incidentally, I didn't need to break the input into separate lines. I did that just so I could more easily see the values.
Which gets me thinking ... such a clut might have come from a simple scan of a conventional silver photographic print, chemically toned. I should dig through my old boxes of photos, and experiment.
snibgo's IM pages: im.snibgo.com
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
Re: How to change the tone of an image.
Now i installed IM on my Unix server and tried to run the command which you gave
"convert in.jpg -modulate 100,0,100 duotone.ppm -clut out.jpg"
In the above command
"in.jpg" is my original image.
"out.jpg" is the output image name which we will get after running the command.
"duotone.ppm" is the ppm file which you asked me to create.
The error which i am getting is,
convert: no decode delegate for this image format `in.jpg' @ error/constitute.c/ReadImage/552.
convert: improper image header `duotone.ppm' @ error/pnm.c/ReadPNMImage/294.
convert: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3106.
Here is the image which i am converting
Here is the list of values what my ppm file contains,
0,0,0
0,0,0
0,0,2
0,0,20
0,0,38
0,0,50
0,0,35
0,0,53
0,0,35
0,2,33
0,0,64
0,2,58
0,4,66
0,6,64
0,7,63
0,10,61
0,13,64
0,16,57
0,16,67
0,17,73
0,20,73
0,21,75
0,23,75
0,22,79
0,28,76
0,28,74
0,28,89
0,33,84
0,33,89
0,35,85
0,37,92
0,39,89
0,39,92
0,44,91
0,45,92
12,38,94
0,45,104
4,46,97
18,40,98
6,48,99
17,47,93
7,52,98
9,54,94
13,51,111
7,57,111
10,58,109
15,58,110
16,59,111
13,64,105
16,64,109
16,64,118
17,66,113
22,65,118
23,66,119
17,72,120
27,72,110
28,73,110
23,76,113
30,75,112
37,76,99
29,77,122
37,77,115
38,76,128
45,81,97
33,84,121
38,83,124
33,85,134
44,87,112
47,87,113
66,79,120
45,90,129
47,92,121
47,92,129
45,93,140
50,95,125
52,95,130
51,98,126
52,97,137
51,100,136
57,98,142
72,99,111
65,103,125
52,107,142
76,103,117
72,106,123
68,106,137
74,106,137
70,110,130
66,110,149
72,113,130
72,112,147
74,114,138
77,115,136
82,114,138
79,117,143
76,120,144
82,119,141
92,117,141
85,121,142
79,123,157
89,124,138
92,122,153
84,126,157
119,120,111
89,129,150
94,128,151
95,130,144
100,129,146
89,135,159
98,133,152
104,135,143
105,136,144
112,134,141
110,136,147
109,138,148
112,139,144
106,140,166
118,139,149
112,142,155
129,140,132
133,139,137
111,147,162
115,147,163
129,144,148
114,149,173
120,150,161
132,149,149
133,149,154
138,150,146
133,152,156
141,153,138
135,154,156
142,152,157
133,155,173
136,156,170
139,158,155
146,157,154
143,159,159
138,163,163
124,166,189
150,162,157
143,161,186
152,164,164
138,169,179
158,165,155
157,167,157
159,167,159
150,170,179
159,169,164
156,171,171
147,177,177
168,171,157
157,173,181
164,172,180
162,179,161
171,174,164
163,178,182
170,179,168
162,181,182
164,180,189
177,180,166
178,182,161
171,182,186
180,184,162
179,184,172
188,183,157
184,185,168
181,188,170
188,188,163
186,188,169
183,193,170
192,188,172
195,191,167
200,188,164
185,194,193
193,195,174
189,195,188
197,195,179
200,196,172
199,196,182
202,197,179
204,197,176
203,200,174
194,202,197
202,202,183
209,201,180
209,202,180
209,202,193
210,203,188
210,206,187
211,206,191
196,209,223
202,212,199
215,208,192
213,210,193
209,213,199
215,213,194
222,212,186
222,213,188
219,215,195
221,215,197
221,217,195
224,216,196
216,221,200
222,218,209
223,221,198
227,217,215
217,226,203
227,223,204
228,222,215
231,224,202
222,228,212
221,227,230
227,231,201
228,231,200
226,232,212
229,231,219
225,231,233
237,231,214
236,232,215
223,237,237
213,238,255
226,242,222
228,238,240
249,233,214
227,242,239
241,240,222
229,244,236
237,242,236
231,244,246
226,246,255
242,242,246
234,249,236
241,244,255
230,252,248
252,246,230
226,254,255
248,249,237
247,249,245
241,253,254
238,255,255
236,255,255
243,255,255
239,255,255
239,255,255
240,255,255
240,255,255
241,255,255
255,255,255
247,255,255
255,255,255
252,255,255
255,255,255
255,255,255
255,255,255
255,255,255
"convert in.jpg -modulate 100,0,100 duotone.ppm -clut out.jpg"
In the above command
"in.jpg" is my original image.
"out.jpg" is the output image name which we will get after running the command.
"duotone.ppm" is the ppm file which you asked me to create.
The error which i am getting is,
convert: no decode delegate for this image format `in.jpg' @ error/constitute.c/ReadImage/552.
convert: improper image header `duotone.ppm' @ error/pnm.c/ReadPNMImage/294.
convert: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3106.
Here is the image which i am converting
Here is the list of values what my ppm file contains,
0,0,0
0,0,0
0,0,2
0,0,20
0,0,38
0,0,50
0,0,35
0,0,53
0,0,35
0,2,33
0,0,64
0,2,58
0,4,66
0,6,64
0,7,63
0,10,61
0,13,64
0,16,57
0,16,67
0,17,73
0,20,73
0,21,75
0,23,75
0,22,79
0,28,76
0,28,74
0,28,89
0,33,84
0,33,89
0,35,85
0,37,92
0,39,89
0,39,92
0,44,91
0,45,92
12,38,94
0,45,104
4,46,97
18,40,98
6,48,99
17,47,93
7,52,98
9,54,94
13,51,111
7,57,111
10,58,109
15,58,110
16,59,111
13,64,105
16,64,109
16,64,118
17,66,113
22,65,118
23,66,119
17,72,120
27,72,110
28,73,110
23,76,113
30,75,112
37,76,99
29,77,122
37,77,115
38,76,128
45,81,97
33,84,121
38,83,124
33,85,134
44,87,112
47,87,113
66,79,120
45,90,129
47,92,121
47,92,129
45,93,140
50,95,125
52,95,130
51,98,126
52,97,137
51,100,136
57,98,142
72,99,111
65,103,125
52,107,142
76,103,117
72,106,123
68,106,137
74,106,137
70,110,130
66,110,149
72,113,130
72,112,147
74,114,138
77,115,136
82,114,138
79,117,143
76,120,144
82,119,141
92,117,141
85,121,142
79,123,157
89,124,138
92,122,153
84,126,157
119,120,111
89,129,150
94,128,151
95,130,144
100,129,146
89,135,159
98,133,152
104,135,143
105,136,144
112,134,141
110,136,147
109,138,148
112,139,144
106,140,166
118,139,149
112,142,155
129,140,132
133,139,137
111,147,162
115,147,163
129,144,148
114,149,173
120,150,161
132,149,149
133,149,154
138,150,146
133,152,156
141,153,138
135,154,156
142,152,157
133,155,173
136,156,170
139,158,155
146,157,154
143,159,159
138,163,163
124,166,189
150,162,157
143,161,186
152,164,164
138,169,179
158,165,155
157,167,157
159,167,159
150,170,179
159,169,164
156,171,171
147,177,177
168,171,157
157,173,181
164,172,180
162,179,161
171,174,164
163,178,182
170,179,168
162,181,182
164,180,189
177,180,166
178,182,161
171,182,186
180,184,162
179,184,172
188,183,157
184,185,168
181,188,170
188,188,163
186,188,169
183,193,170
192,188,172
195,191,167
200,188,164
185,194,193
193,195,174
189,195,188
197,195,179
200,196,172
199,196,182
202,197,179
204,197,176
203,200,174
194,202,197
202,202,183
209,201,180
209,202,180
209,202,193
210,203,188
210,206,187
211,206,191
196,209,223
202,212,199
215,208,192
213,210,193
209,213,199
215,213,194
222,212,186
222,213,188
219,215,195
221,215,197
221,217,195
224,216,196
216,221,200
222,218,209
223,221,198
227,217,215
217,226,203
227,223,204
228,222,215
231,224,202
222,228,212
221,227,230
227,231,201
228,231,200
226,232,212
229,231,219
225,231,233
237,231,214
236,232,215
223,237,237
213,238,255
226,242,222
228,238,240
249,233,214
227,242,239
241,240,222
229,244,236
237,242,236
231,244,246
226,246,255
242,242,246
234,249,236
241,244,255
230,252,248
252,246,230
226,254,255
248,249,237
247,249,245
241,253,254
238,255,255
236,255,255
243,255,255
239,255,255
239,255,255
240,255,255
240,255,255
241,255,255
255,255,255
247,255,255
255,255,255
252,255,255
255,255,255
255,255,255
255,255,255
255,255,255
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: How to change the tone of an image.
You need to do something more when you install ImageMagick. I don't know what that is.helloworld wrote:convert: no decode delegate for this image format `in.jpg' @ error/constitute.c/ReadImage/552.
Did you include the three header lines I showed you?helloworld wrote:convert: improper image header `duotone.ppm' @ error/pnm.c/ReadPNMImage/294.
snibgo's IM pages: im.snibgo.com
-
- Posts: 69
- Joined: 2013-05-22T09:42:33-07:00
- Authentication code: 6789
Re: How to change the tone of an image.
Now i removed the top three line in the file which you gave but still it showing me the same error.
error:
convert: improper image header `duotone.ppm' @ error/pnm.c/ReadPNMImage/294.
New ppm File:
0,0,0
0,0,0
0,0,2
0,0,20
0,0,38
0,0,50
0,0,35
0,0,53
0,0,35
0,2,33
0,0,64
0,2,58
0,4,66
0,6,64
0,7,63
0,10,61
0,13,64
0,16,57
0,16,67
0,17,73
0,20,73
0,21,75
0,23,75
0,22,79
0,28,76
0,28,74
0,28,89
0,33,84
0,33,89
0,35,85
0,37,92
0,39,89
0,39,92
0,44,91
0,45,92
12,38,94
0,45,104
4,46,97
18,40,98
6,48,99
17,47,93
7,52,98
9,54,94
13,51,111
7,57,111
10,58,109
15,58,110
16,59,111
13,64,105
16,64,109
16,64,118
17,66,113
22,65,118
23,66,119
17,72,120
27,72,110
28,73,110
23,76,113
30,75,112
37,76,99
29,77,122
37,77,115
38,76,128
45,81,97
33,84,121
38,83,124
33,85,134
44,87,112
47,87,113
66,79,120
45,90,129
47,92,121
47,92,129
45,93,140
50,95,125
52,95,130
51,98,126
52,97,137
51,100,136
57,98,142
72,99,111
65,103,125
52,107,142
76,103,117
72,106,123
68,106,137
74,106,137
70,110,130
66,110,149
72,113,130
72,112,147
74,114,138
77,115,136
82,114,138
79,117,143
76,120,144
82,119,141
92,117,141
85,121,142
79,123,157
89,124,138
92,122,153
84,126,157
119,120,111
89,129,150
94,128,151
95,130,144
100,129,146
89,135,159
98,133,152
104,135,143
105,136,144
112,134,141
110,136,147
109,138,148
112,139,144
106,140,166
118,139,149
112,142,155
129,140,132
133,139,137
111,147,162
115,147,163
129,144,148
114,149,173
120,150,161
132,149,149
133,149,154
138,150,146
133,152,156
141,153,138
135,154,156
142,152,157
133,155,173
136,156,170
139,158,155
146,157,154
143,159,159
138,163,163
124,166,189
150,162,157
143,161,186
152,164,164
138,169,179
158,165,155
157,167,157
159,167,159
150,170,179
159,169,164
156,171,171
147,177,177
168,171,157
157,173,181
164,172,180
162,179,161
171,174,164
163,178,182
170,179,168
162,181,182
164,180,189
177,180,166
178,182,161
171,182,186
180,184,162
179,184,172
188,183,157
184,185,168
181,188,170
188,188,163
186,188,169
183,193,170
192,188,172
195,191,167
200,188,164
185,194,193
193,195,174
189,195,188
197,195,179
200,196,172
199,196,182
202,197,179
204,197,176
203,200,174
194,202,197
202,202,183
209,201,180
209,202,180
209,202,193
210,203,188
210,206,187
211,206,191
196,209,223
202,212,199
215,208,192
213,210,193
209,213,199
215,213,194
222,212,186
222,213,188
219,215,195
221,215,197
221,217,195
224,216,196
216,221,200
222,218,209
223,221,198
227,217,215
217,226,203
227,223,204
228,222,215
231,224,202
222,228,212
221,227,230
227,231,201
228,231,200
226,232,212
229,231,219
225,231,233
237,231,214
236,232,215
223,237,237
213,238,255
226,242,222
228,238,240
249,233,214
227,242,239
241,240,222
229,244,236
237,242,236
231,244,246
226,246,255
242,242,246
234,249,236
241,244,255
230,252,248
252,246,230
226,254,255
248,249,237
247,249,245
241,253,254
238,255,255
236,255,255
243,255,255
239,255,255
239,255,255
240,255,255
240,255,255
241,255,255
255,255,255
247,255,255
255,255,255
252,255,255
255,255,255
255,255,255
255,255,255
255,255,255
error:
convert: improper image header `duotone.ppm' @ error/pnm.c/ReadPNMImage/294.
New ppm File:
0,0,0
0,0,0
0,0,2
0,0,20
0,0,38
0,0,50
0,0,35
0,0,53
0,0,35
0,2,33
0,0,64
0,2,58
0,4,66
0,6,64
0,7,63
0,10,61
0,13,64
0,16,57
0,16,67
0,17,73
0,20,73
0,21,75
0,23,75
0,22,79
0,28,76
0,28,74
0,28,89
0,33,84
0,33,89
0,35,85
0,37,92
0,39,89
0,39,92
0,44,91
0,45,92
12,38,94
0,45,104
4,46,97
18,40,98
6,48,99
17,47,93
7,52,98
9,54,94
13,51,111
7,57,111
10,58,109
15,58,110
16,59,111
13,64,105
16,64,109
16,64,118
17,66,113
22,65,118
23,66,119
17,72,120
27,72,110
28,73,110
23,76,113
30,75,112
37,76,99
29,77,122
37,77,115
38,76,128
45,81,97
33,84,121
38,83,124
33,85,134
44,87,112
47,87,113
66,79,120
45,90,129
47,92,121
47,92,129
45,93,140
50,95,125
52,95,130
51,98,126
52,97,137
51,100,136
57,98,142
72,99,111
65,103,125
52,107,142
76,103,117
72,106,123
68,106,137
74,106,137
70,110,130
66,110,149
72,113,130
72,112,147
74,114,138
77,115,136
82,114,138
79,117,143
76,120,144
82,119,141
92,117,141
85,121,142
79,123,157
89,124,138
92,122,153
84,126,157
119,120,111
89,129,150
94,128,151
95,130,144
100,129,146
89,135,159
98,133,152
104,135,143
105,136,144
112,134,141
110,136,147
109,138,148
112,139,144
106,140,166
118,139,149
112,142,155
129,140,132
133,139,137
111,147,162
115,147,163
129,144,148
114,149,173
120,150,161
132,149,149
133,149,154
138,150,146
133,152,156
141,153,138
135,154,156
142,152,157
133,155,173
136,156,170
139,158,155
146,157,154
143,159,159
138,163,163
124,166,189
150,162,157
143,161,186
152,164,164
138,169,179
158,165,155
157,167,157
159,167,159
150,170,179
159,169,164
156,171,171
147,177,177
168,171,157
157,173,181
164,172,180
162,179,161
171,174,164
163,178,182
170,179,168
162,181,182
164,180,189
177,180,166
178,182,161
171,182,186
180,184,162
179,184,172
188,183,157
184,185,168
181,188,170
188,188,163
186,188,169
183,193,170
192,188,172
195,191,167
200,188,164
185,194,193
193,195,174
189,195,188
197,195,179
200,196,172
199,196,182
202,197,179
204,197,176
203,200,174
194,202,197
202,202,183
209,201,180
209,202,180
209,202,193
210,203,188
210,206,187
211,206,191
196,209,223
202,212,199
215,208,192
213,210,193
209,213,199
215,213,194
222,212,186
222,213,188
219,215,195
221,215,197
221,217,195
224,216,196
216,221,200
222,218,209
223,221,198
227,217,215
217,226,203
227,223,204
228,222,215
231,224,202
222,228,212
221,227,230
227,231,201
228,231,200
226,232,212
229,231,219
225,231,233
237,231,214
236,232,215
223,237,237
213,238,255
226,242,222
228,238,240
249,233,214
227,242,239
241,240,222
229,244,236
237,242,236
231,244,246
226,246,255
242,242,246
234,249,236
241,244,255
230,252,248
252,246,230
226,254,255
248,249,237
247,249,245
241,253,254
238,255,255
236,255,255
243,255,255
239,255,255
239,255,255
240,255,255
240,255,255
241,255,255
255,255,255
247,255,255
255,255,255
252,255,255
255,255,255
255,255,255
255,255,255
255,255,255
Re: How to change the tone of an image.
It worked for me using php on my localhost and I ended up with a blue image.
Have you confirmed Imagemagick is working with a simple jpg resize - what version did you install?
Code: Select all
<?php
exec("convert in.jpg -modulate 100,0,100 duoclut.ppm -clut out.png");
?>
<img src="in.jpg"><br>
<img src="out.png"><br>