fill all the objects in the image with a frame, and leave the rest intact colors

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
tablo21
Posts: 3
Joined: 2020-02-02T09:54:42-07:00
Authentication code: 1152

fill all the objects in the image with a frame, and leave the rest intact colors

Post by tablo21 »

I need to color the border around the white zone. I can’t figure out how to do this.
without touching objects without a white core

Magick convert lines.png -fill green -bordercolor black \ -draw "color 0,0 filltoborder" lines0.png

Magick convert lines0.png -fill red -bordercolor white -opaque black filltoborder lines_res0.png
Magick convert lines0.png -fill blue -bordercolor white -opaque black floodfill lines_res1.png



my file
https://cloud.mail.ru/public/5mEx/5MU1b5rLc

Post Reply