It is currently Fri Jun 21, 2024 3:24 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 312 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 16  Next
Author Message
 Post subject: Re: Multi-Fill Script Help
PostPosted: Tue Oct 08, 2019 11:53 am  (#141) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
regido wrote:
dinasset wrote:
This is a different area of application, it's one closer to what I do with many "variations" on an image; if you followed me on GC, my biggest area of interest is manipulating photos thru:
- reduce the image to a given number of colour areas ("posterize")
- fill each area with a texture having an appropriate hue
This is in the area of "artistic" processing.
The "filling" is more a "divertissement", where the goal is playing with randomness and see what can come out


I understand.
Quick question.
When using my own patterns even if they are not tranpsarent the white background of them dissapear. It´s therey any form to prevent this?
thanks a lot

Diego, one question. I´m trying to make it work with bimp, but when i try to enter the information regarding palette name and others it just let me choose a number. Do you know what are the correct numbers on those dropdowns to make it work for patterns?
thanks a lot



Image


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Tue Oct 08, 2019 12:14 pm  (#142) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
The script is running light and as expected, with a little note for the Gradient option of BG/FG Colors.

When selecting FG/BG colors for Gradient, there is repeatability in the output produced, the random feature does not seem to be taken into account in this case, and only two areas were continuously painted (at least in the image I used as an experiment). Always giving the same shade of red (orange) and yellow.

Dinasset, the way the selected gradient is producing its result is very satisfactory (except when selected FG/BG rgb), but it would be possible to have a second option, where the painted result would be shown in gradient rather than in solid colors of the selected gradient?

If only one of the two options is possible, I would prefer the way the script is now. As in the sample - Gradient- Golden from the image below.
Attachment:
DiegoRFilling.jpg
DiegoRFilling.jpg [ 269.67 KiB | Viewed 1003 times ]

Thanks for extending the life of this script and for the 7-animals patterns available.


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 12:02 am  (#143) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
@regido
I'm not an expert of Bimp, but I presume the numbers it wants differ in each installation (i.e. depending on which palettes, gradients, patterns are installed in the specific user Gimp)
@Krikor
filling each area with a gradient could be an additional option, similar to the pattern option, i.e. using a different gradient in each area, but as a difference from the patterns a gradient requires additional parameters (how to "draw" the gradient, mode, starting point, ending point) and this will "complicate" this simple "divertissement".

_________________
"Where am I ?"


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

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
@Krikor
using FGtoBG(RGB) I get different outcomes, not always the same.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 6:58 am  (#145) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
dinasset wrote:
@Krikor
using FGtoBG(RGB) I get different outcomes, not always the same.

Dinasset literally yes, different results, but visually very similar.
The images below are all different, generated from the same black and white original.
FG = ff0000 ; BG = ffee00
Attachment:
FBBGgradient.png
FBBGgradient.png [ 634.85 KiB | Viewed 964 times ]


dinasset wrote:
@Krikor
filling each area with a gradient could be an additional option, similar to the pattern option, i.e. using a different gradient in each area, but as a difference from the patterns a gradient requires additional parameters (how to "draw" the gradient, mode, starting point, ending point) and this will "complicate" this simple "divertissement".

Ok, I like the result that the selected gradient produces. Thx :bigthup


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 7:32 am  (#146) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
I can only guess that the Gimp function "gimp_gradient_get_uniform_samples" does not work as we could expect when the gradient has in fact only two start/end colours.
Just a guess.

edit:(or: let me better check...)

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 8:23 am  (#147) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Sorry...
Found errors in my script; could you try now?
This is the amended version:
Attachment:
DIEGO_RENDER_Filling.zip [2.06 KiB]
Downloaded 48 times

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 8:42 am  (#148) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
FG=FFFF00, BG=0000FF
Attachment:
FGyellowBGblue.jpg
FGyellowBGblue.jpg [ 301.49 KiB | Viewed 952 times ]

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 1:19 pm  (#149) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
dinasset wrote:
Sorry...
Found errors in my script; could you try now?
This is the amended version:
Attachment:
The attachment DIEGO_RENDER_Filling.zip is no longer available

What was good now is even better!
Dinasset, thanks for your efforts to improve this script and meet Gimpmaniac's wishes.
Attachment:
vitralfundo.jpg
vitralfundo.jpg [ 236.47 KiB | Viewed 938 times ]

Stained glass window with city in the background.


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 1:36 pm  (#150) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Krikor,
many thanks for your kind words and especially for your continuous testing, which let me remove some problematic errors.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 4:37 pm  (#151) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Dinasset could you please take a look at that bimp thing i mentioned?
When i try to use it in the dropdown i can only put numbers, not text. I just want to fill everything with patterns, the patterns are called meme (meme1,meme2 etc)
This will be a lifesaver for me.
Thanks a lot for your great work


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Wed Oct 09, 2019 11:28 pm  (#152) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
As I told you, I do not know BIMP, but -if for pattern it requires a number- this means clearly that it accepts just ONE SINGLE SPECIFIC pattern for parameter (for instance: the ninth in the list), therefore it is not possible to specify a string (like "meme") to select randomly among all the patterns having that specific string.
Sorry.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 5:22 am  (#153) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Let me think about a specific solution without the use of Bimp.
If I succeed, I will post it here.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 8:25 am  (#154) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
@regido

I prepared a filter will calls the filter "filling" for any .png or .jpg file inside a selected input folder and places the outcome in a selected output folder.
To test it:
1.create (maybe on desktop, I did so for my tests) a folder containing some (not too many for the initial tests) B&W drawings which you will like to have filled on each area for instance by random patterns (I know you are more interested on fill-with-patterns, aren't you?)
2.prepare an empty folder for the outcomes that will be produced (must exist, before launching the filter!)
3.launch the "batch_filling" filter
4.choose your defined input folder
5.choose your defined output folder
6.run and wait the completion (you get a final message saying "processed n files")
Good luck and let me know.
Attachment:
DIEGO_RENDER_BatchFilling.zip [1.38 KiB]
Downloaded 42 times


(note: modified the "filling" by removing the info messages, to avoid annoying the user)
modified version here:
Attachment:
DIEGO_RENDER_Filling.zip [2.06 KiB]
Downloaded 52 times
)

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 1:02 pm  (#155) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Diego this is great. Thanks a lot for your work it works perfectly.
Thanks a lot again, you´re a genius


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 2:31 pm  (#156) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Glad it works and can help you in your activity.

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 8:42 pm  (#157) 
Offline
GimpChat Member

Joined: Sep 23, 2019
Posts: 31
Quick question diego, do you have any idea on why this is happening? check the following photo
Image
As you can see there´s a white border around the shape form.
Another question. If i use white and black and define white as the color to be replaced there´s a strange error where the pattern whites are also deleted. If i use green that doesn´t happen.
One suggestion. I think it would be great to give the possibility to remove the black lines right after the filling proccess is finished, it would be very helpful.

Thanks a lot in advance, you are very kind
Have a nice day


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 11:28 pm  (#158) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Problem 1:
It happens often, because the source is not "really" black and white.
Ensure the source is really black and white by running "threshold" first.
This is my outcome using Nidhogg's image after having applied threshold before running filling.
Attachment:
no-white-borders.png
no-white-borders.png [ 104.07 KiB | Viewed 803 times ]

As you see, there are no white margins.

Problem 2:
I don't know, post your sources (both the black and white and the black and green)

Problem 3:
Replacing black with what?

_________________
"Where am I ?"


Top
 Post subject: Re: Multi-Fill Script Help
PostPosted: Thu Oct 10, 2019 11:36 pm  (#159) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
PostScriptum:
concerning problem 3:
if the black lines are all of the same dimension, it can be used the "dilate" function of Gimp, try yourself and tell me if this if what you would see.

_________________
"Where am I ?"


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

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Because we live in different time zones, I took my decision without waiting for your reply.
This version removes the drawing lines (even if of different sizes).
Check and let me know.
Attachment:
DIEGO_RENDER_Filling.7z [2.25 KiB]
Downloaded 44 times

Outcome:
Attachment:
grid-removed.png
grid-removed.png [ 42.72 KiB | Viewed 800 times ]

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 312 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 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