"%IMG%convert" ^
chloe.png ^
( -clone 0 -colorspace Gray -median 6 ) ^
( -clone 1 -adaptive-blur 6 ) ^
( -clone 1 ^
-clone 2 ^
-compose minus -composite ^
-normalize ^
-level 50x100%% ^
-alpha copy -negate ) ^
( -clone 2 ^
-clone 1 ^
-compose minus -composite ^
-normalize ^
-level 50x100%% ^
-alpha copy ) ^
-delete 0-2 ^
-compose src-over -composite ^
chloeMedLines.png
"%IMG%convert" ^
chloe.png ^
( -clone 0 -colorspace Gray -median 15 ) ^
( -clone 1 -adaptive-blur 15 ) ^
( -clone 1 ^
-clone 2 ^
-compose minus -composite ^
-normalize ^
-level 50x100%% ^
-alpha copy -negate ) ^
( -clone 2 ^
-clone 1 ^
-compose minus -composite ^
-normalize ^
-level 50x100%% ^
-alpha copy ) ^
-delete 0-2 ^
-compose src-over -composite ^
chloeThickLines.png
"%IMG%convert" ^
chloeMedLines.png ^
chloeThickLines.png -composite ^
-channel Alpha -evaluate Multiply 0.5 ^
chloeLines.png
"%IMG%convert" ^
chloe.png ^
-median 3 -segment 1000x0.3 ^
chloeCol.png
"%IMG%convert" ^
chloeCol.png ^
chloeLines.png ^
-composite ^
chloeFinal.png
This is on Windows. %IMG% is my location of ImageMagick. The five commands could be squished into one.