It is currently Sat Jun 15, 2024 6:21 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Find and fill paths if closed, convert closed paths to transparent
PostPosted: Wed Apr 15, 2020 12:32 pm  (#1) 
Offline
New Member

Joined: Apr 15, 2020
Posts: 1
Is it possible to do this in script-fu?

Go from Pronghorn.png, which has a transparent background.

Image

to Pronghorn1.png

Image

Here's how I did it manually:

Open Pronghorn.png
Select the open paths (lines in the head and on leg and thigh) and fill them with white.
Select the area just inside the closed path that makes up the outer edge of the Pronghorn.
Fill that area Black. This leave the 'islands' I want to keep transparent.
Export the File to Pronghorn1.png

Ideally I should have selected the 'white' open paths and filled them transparent before saving.

I have about 3000 images to process so, I'd like to be able to script it. I just don't know how to find the open paths, then fill inside the outer closed path.

Thank you


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Find and fill paths if closed, convert closed paths to transparent
PostPosted: Thu Apr 16, 2020 3:43 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4749
This image likely comes frorm some vector graphics app (SVG, AI or EPS format). Do you have the vector files? This would be a lot easier.

_________________
Image


Top
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Users' Paths

2

No new posts Paths Tool Help

1

No new posts Attachment(s) Paths Tool Issue

9

No new posts Juxtapose exactly duplicate paths

2

No new posts Interests crossing paths

4



* Login  



Powered by phpBB3 © phpBB Group