I am back to learn how to work with multiple layers. Just tried examples from page 8 and they do not work for me suddenly. I have saved the batch files when I did this years ago but they do not work. For me. The colors in -fill are correct as I checked it again.
Now this command:
Code: Select all
convert map.png -write mpr:input +delete ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFE168" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#E5bC4C" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFF1B3" ) ^
-evaluate-sequence add -blur 0x1.6 -threshold 25%% -write t1.png ^
-evaluate-sequence add -blur 0x2.4 -threshold 2.5%% -write t2.png
>convert map.png -write mpr:input +delete ( mpr:input -fuzz 2% -fill black +opaque "#FFE168" ) ( mpr:input -fuzz 2% -fill black +opaque "#E5bC4C" ) ( mpr:input -fuzz 2% -fill black +opaque "#FFF1B3" ) -evaluate-sequence add -blur 0x1.6 -threshold 25% -write t1.png -evaluate-sequence add -blur 0x2.4 -threshold
2.5% -write t2.png
convert.exe: option requires an argument `-write' @ error/convert.c/ConvertImage
Command/2996.
>pause
This command is original from batch file which should work but it generated empty (black) images
Code: Select all
convert map.png -write mpr:input +delete ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFE168" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#E5bC4C" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFF1B3" ) ^
-evaluate-sequence add -blur 0x1.6 -threshold 25%% -write highway_result_basic_1.png ^
-delete 0-3 ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFE168" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#E5bC4C" ) ^
( mpr:input -fuzz 2%% -fill black +opaque "#FFF1B3" ) ^
-evaluate-sequence add -blur 0x2.4 -threshold 2.5%% highway_result_basic_2.png
IM ver. 6.7.5-1 Q8
When no-one of these commands works then I tried this:
Code: Select all
convert -size 64x64 canvas:black +write mpr:input ^
( mpr:input -size 64x64 xc: -draw "circle 22,32 5,32" ) ^
( mpr:input -size 64x64 xc: -draw "circle 41,32 58,32" ) ^
-evaluate-sequence add -write t.png
and it also says error I must use -write option
Edit on the other hand if I change -evaluate-sequence add for
-compose lighten
it works and creates images like highway_result_basic_1-0.png highway_result_basic_1-1.png highway_result_basic_1-2.png
however I wanted one image where the three masks are joined to one so I used -evaluate-sequence add ... I also thought is should I try -clone 0-2 and then the sequence, but fails coz -evaluate-sequence wants -write argument.