dlemstra
Thank you bro this is great, appreciate your help ..
that line was a part of my script, any other changes should be done when moving from cmd to catch other that replacing every % with %% for my commands:
Code: Select all
convert 405_B.jpg -threshold 50% -bordercolor white -border 10 -fill black -draw "color 0,0 floodfill" -alpha off -shave 10x10 405_B_floodfill.gif
Code: Select all
convert 405_B_floodfill.gif -define connected-components:verbose=true -connected-components 4 405_B_objects.png
Code: Select all
convert 405_B_objects.png -define connected-components:area-threshold=12119 -connected-components 4 -auto-level -morphology erode octagon:1 405_B_objects_ccl.png
Code: Select all
convert 405_B.jpg 405_B_objects_ccl.png -alpha off -compose copy_opacity -composite -trim +repage -background white -alpha background -alpha off 405_B_result.gif