It is currently Thu Jun 27, 2024 10:02 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 312 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 16  Next
Author Message
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 2:28 am  (#161) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12702
Location: Spain, Aragón
Dear friend Diego, your script works very well but could I ask you that the remove option black line was optional by the user? I like the black definitory line in some items. Thanks a lot.


Attachments:
DN_Filling+black line.JPG
DN_Filling+black line.JPG [ 107.42 KiB | Viewed 1089 times ]
DN_Filling_No black line.JPG
DN_Filling_No black line.JPG [ 94.02 KiB | Viewed 1089 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 4:23 am  (#162) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Issabella, it is optional.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 5:44 am  (#163) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Anyhow, I made an addition which preserves also the filled with borders, when the option "remove grid" is selected.
So you get 2 layers, on top the one without the black borders, the other one below with the black borders.
Attachment:
DIEGO_RENDER_Filling.7z [2.34 KiB]
Downloaded 42 times


Could you try?

_________________
"Where am I ?"


Last edited by dinasset on Fri Oct 11, 2019 6:10 am, edited 1 time in total.

Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 5:50 am  (#164) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I also updated the BatchFilling (which did no more work with the new "filling").
In this case, if you ask to remove the gris, two images are stored in the outcome folder, one with the borders, one flattened.
Attachment:
DIEGO_RENDER_BatchFilling.7z [1.52 KiB]
Downloaded 39 times


regido and anyone else interested can try.

(remember to use threshold on each source image if you want to be sure the drawing are pure black&white)

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 8:47 am  (#165) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Hello Diego.
Let me explain you more in the detail my problem to see if there´s any solution.
This is the original image i´m going to use. Is pure black and white

Image

I apply your filling plugin selecting white as the color to be erased and use random patterns. The result is here

Image

There´s something very strange where part of the patterns are not well represented as you will see in this next example with a completely different result

Image

Instead of using black and white i use this chroma green and black.

Image

Using the same patterns, instead of selectin white i use that green chroma to be removed, the result is much cleaner as you can see.

Image

Here is the image layer without the black border

Image

Here is the zoom of the layer wihout the black border.

Do you have any idea about what could be the problem or the issue with this?

Thanks a lot in advance


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 9:04 am  (#166) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12702
Location: Spain, Aragón
I used a white and black image, too. I chose from gradients and keep the black lines. I love the result.


Attachments:
SmallPicture_DN_Filling_Issa.jpg
SmallPicture_DN_Filling_Issa.jpg [ 141.2 KiB | Viewed 1066 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 9:14 am  (#167) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Downloaded your B&W source image.
I will do many tests with my patterns sets to see what happens.
I'll let you know.

_________________
"Where am I ?"


Last edited by dinasset on Fri Oct 11, 2019 9:33 am, edited 1 time in total.

Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 9:28 am  (#168) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
First tests:
- I ran 10 times the filter (w/o removing the black grid) and all of them came out cleanly filled with random patterns.
Hence my questions:
- which sets of patterns have you used (they look very strange to me)?
- the all-green result came out just only once or can you repeat the event?
I cannot understand the second of your trials, but I'm interested to solve the first problem.
Awaiting your reply.
Maybe you can post your pattern sets used in step 1 so I can repeat another 10 tests,

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 9:35 am  (#169) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Also, you can post the screenshot of your launch.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 10:35 am  (#170) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Hello Diego.
Here you can see a different test.
Image

BW image with "animal" patterns (the ones that came with GIMP)

Image

As you can see i´m still getting a white border.

Concerning my patterns i´m still getting the same results.
Maybe i´m using a set that is too big (i have around 300 patterns there) each pattern is 2000x2000px.

The strange thing is that if i do the test with greens instead of whites the result is much better, like the one i already showed you on my last post.

Thanks a lot again


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 10:57 am  (#171) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
You didn't do what I suggested.
In fact:
- downloaded your B&W drawing
- launched the filter (random patterns)
- got me too very subtle white margins
Then:
- run threshold on the B&W drawing
- launched again the filter (random patterns)
- NO white margins
What happens when using greens instead of white is very likely the fact that you succeed in filling all what is not black with pure green, hence creating the two-pure-colours situation like threshold does with black and white.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 11:21 am  (#172) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Hello diego.
Im getting better results with treshold.
Even with treshold my patterns look completely different if i use green instead of white. If i choose to remove white they don´t look like those are, but if i use green i get better results (only applying the patterns, the border is worse for the reason you said in your post)

Bellow is a sample of the same image applying the filler with treshold and filling white colors (I´m using exactly the same patterns, only variation is the color to fill).


Image

Here is the version filling the green color.

Image

It is a matter of resolution or quantity of patterns or something like that?
that´s a very strange problem. Check the difference


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 11:34 am  (#173) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I see greens in the design lines, while it should be black (you said replaced whites with greens, not blacks with greens...)?!?

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 11:48 am  (#174) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I wanted to do what you said to me in your post.
Using original source, black and white:
Attachment:
outcome-using-source-BW.png
outcome-using-source-BW.png [ 601.9 KiB | Viewed 1081 times ]

Using the source with white replaced by green:
Attachment:
outcome-using-source-BGreen.png
outcome-using-source-BGreen.png [ 670.16 KiB | Viewed 1081 times ]


Obviously the patterns chosen are different (random), but no significant difference.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 1:18 pm  (#175) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
maybe its a matter of the file size or numbers of patterns?
If i put the design in black and green and fill green the patterns look good, if i put the design in black and white and fill the white it doesn´t look good, patterns are messed up.


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 1:24 pm  (#176) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Try defining a set of a few patterns, so that the random function will in any case select the pattern among those few, repeat the double test and see.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 1:39 pm  (#177) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Another test you can do is:
- run 10 times the filter with the same source image and same parameters
look:
- are all 10 outcomes using White-Black bad and all 10 outcomes using Green-Black good?
And: what/why you consider good and what bad?
I guess you have a set of patterns with so different structures that some outcome could be seen good or bad depending on the pattern chosen.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 1:42 pm  (#178) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Another question: do some of your patterns include whites?
That causes that at the next step of random choice also the white parts of the already filled areas are selected and replaced.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Fri Oct 11, 2019 11:52 pm  (#179) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Made a change to the filter, which (hopefully) avoid inserting a colour identical to the one to be replaced, so (in case of drawings black&white) patterns having white areas can be used without being "ruined" by the gray replacing colour or a new area selection+fill.
Issabella, Regido, could you do a check test?
Attachment:
DIEGO_RENDER_Filling.7z [2.79 KiB]
Downloaded 34 times

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Sat Oct 12, 2019 12:23 am  (#180) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
@Krikor
If you are still interested in me adding the additional option of random gradients filling, I can try to implement it (at this point -after all the last amendments- the filter is no more a "divertissement", so no reason to refuse this interesting addition....)

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 312 posts ]  Go to page Previous  1 ... 6, 7, 8, 9, 10, 11, 12 ... 16  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Seeking Help with First Multi-File Batch Script

9

No new posts Palette from multi image

2

No new posts Attachment(s) Fill with pattern seamless

13

No new posts Line art detection bucket fill

0

No new posts Filled path not exporting with fill

4



* Login  



Powered by phpBB3 © phpBB Group