pattern-fill difficulty

Post questions on how to use or achieve an effect in Inkscape.
Guillaume
Posts: 57
Joined: Thu May 17, 2018 6:42 am
Location: Florida

pattern-fill difficulty

Postby Guillaume » Tue Sep 04, 2018 9:19 am

No problem using one of my patterns to fill any and all Inkscape shapes that you find on the left side. It is when trying to fill exterior shapes (for instance, a country outline) that I find it impossible to do, even though I made sure to "trace bitmap" it. The same difficulty occurs whether using ING or SVG. I am certain that my query will find enlightening responses because my searches have not discovered a similar problem.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: pattern-fill difficulty

Postby tylerdurden » Tue Sep 04, 2018 10:18 am

Would be best if you can provide an example svg file. Embed or include the bitmap file. Please use a link to a sharing/hosting service if the file is too large.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: pattern-fill difficulty

Postby druban » Tue Sep 04, 2018 10:25 am

The most likely scenario is that your shape is an outline which looks stroked but is actually a filled stroke. The center area will always be empty because it is not the interior of any shape. This happens whenever one tries to trace a picture with an outline instead of a solidly colored region. The trace bitmap routine in Inkscape does NOT recognize outlines (yet).

PS Not sure what ING format is, assuming a typo... for PNG?
Your mind is what you think it is.

Guillaume
Posts: 57
Joined: Thu May 17, 2018 6:42 am
Location: Florida

Re: pattern-fill difficulty

Postby Guillaume » Wed Sep 05, 2018 2:59 am

Here are two files for you to peruse: the base image France.jpg and the file destined to become a pattern
Eiffel.png. I'll be curious to know what you have been able to do or advise me to do. Thanks so far.
Oh, ING was a typo for PNG.
Attachments
eiffel.png
eiffel.png (17.29 KiB) Viewed 1555 times
france.jpg
france.jpg (84.58 KiB) Viewed 1555 times

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: pattern-fill difficulty

Postby Moini » Wed Sep 05, 2018 6:18 am

I'd suggest you try to find a non-copyrighted vector version of France, instead of doing trace bitmap on a jpg.

If you want to use the traced version, though, select France, then do 'Path > Break Apart', then 'Path > Union' (without deselecting in between).
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: pattern-fill difficulty

Postby druban » Wed Sep 05, 2018 6:26 pm

See if you can figure out from this path added on top of the trace of your jpg. In the trace bitmap dialog you can uncheck the stack scans option although that's not how I went about it
Attachments
lafrance.svg
(158.26 KiB) Downloaded 166 times
Your mind is what you think it is.

Guillaume
Posts: 57
Joined: Thu May 17, 2018 6:42 am
Location: Florida

Re: pattern-fill difficulty

Postby Guillaume » Thu Sep 06, 2018 2:51 am

I have discovered a surprising solution while awaiting your comments: When I did a "trace bitmap" with edge detection on the country, the outline became thicker. So this Inkscape novice deduced that the area it encompassed would be filled easily. Error! Yet, with several trials done, I noticed at times that this outlline seemed to take on a faint tint. Why this focus on outlines instead of body I thought. It occurred to me that pattern-fill did not fill the body but the stroke. why would that be? Anyway, I did a little experiment, clicked on the bucket then on the country. That was no problem because the interior (the white part) immediately filled with the default color blue. With that new look untouched I clicked on Fill & Stroke's pattern-fill and, surprise, the country was immediately filled with my pattern. To continue, I thought that there was no reason for a preliminary fill with color but alas no I had to rely on this little subterfuge. At least I had found one kind of solution. In the end, I have two questions: why do the bucket fill first and, how is Inkscape able to distinguish the color white from the area around it.
I am showing you an example with the attached file of Andorra and a penguin.
Attachments
andorrapenguin.svg
(208.95 KiB) Downloaded 175 times


Return to “Help with using Inkscape”