Trouble with clipping and aligning

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
User avatar
wellington_grey
Posts: 5
Joined: Tue Oct 28, 2008 7:20 pm
Contact:

Trouble with clipping and aligning

Postby wellington_grey » Tue Oct 28, 2008 7:41 pm

Hello,

I'm having a little trouble with clipping that I hope someone can help me with.

I'm starting with a SVG flag and a square. The goal is to get the flag inside the square and keep the stroke border around the edge, like so:

Image

Right now I make two copies of the square, put one on top of the flag and set the clipping. The problem is, that sometimes inkscape still registers the size of this object as the size of the flag. That makes aligning it with the top square to complete the border must be done manually.

The bigger problem is, even if I manually align the flag with the border and group them as one object, inkscape doesn't recognize the correct size of the object as shown in the screenshot. Since I'll eventually have to align hundreds of these flags, doing it manually is not an option.

Image

Does anyone have a better suggestion for how I should do this?

Thanks in advance for any help,

-Grey

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Trouble with clipping and aligning

Postby microUgly » Tue Oct 28, 2008 8:38 pm

wellington_grey wrote:The problem is, that sometimes inkscape still registers the size of this object as the size of the flag. That makes aligning it with the top square to complete the border must be done manually.

When you say that Inkscape sometimes "registers the size of the object as the size of the flag", are you seeing this effect when you use the align and distribution options? I actually can't reproduce this, but then you did say "sometimes" so maybe I'm not finding the right combination.

The bigger problem is, even if I manually align the flag with the border and group them as one object, inkscape doesn't recognize the correct size of the object as shown in the screenshot. Since I'll eventually have to align hundreds of these flags, doing it manually is not an option.

This I can reproduce. Grouping the outline and the clipped-group creates a shape that looks right, but it's selection outline is larger than what it should be, yet smaller than the unclipped flag.

I don't know why this is happening and I can't offer a work around. I'm moving this topic to the "Discuss Software Issues" forum, but that forum is only for "discussions"--if you would like it fixed you will need to log a bug report. You may find a bug has already been reported.

User avatar
wellington_grey
Posts: 5
Joined: Tue Oct 28, 2008 7:20 pm
Contact:

Re: Trouble with clipping and aligning

Postby wellington_grey » Tue Oct 28, 2008 8:48 pm

When you say that Inkscape sometimes "registers the size of the object as the size of the flag", are you seeing this effect when you use the align and distribution options? I actually can't reproduce this, but then you did say "sometimes" so maybe I'm not finding the right combination.


I did say "sometimes" because it seems to only happen with some SVG flags and not others. When I next work on the file, I'll try and find one and upload the file.

My ultimate requirement is to end up with a grid of many boxes with flags inside of them. Is there any easier way to get than effect?

Thank you,

-Grey

Simarilius
Posts: 626
Joined: Wed Jun 06, 2007 2:37 am

Re: Trouble with clipping and aligning

Postby Simarilius » Tue Oct 28, 2008 8:50 pm

I'd convert the flag to a pattern and put it in the fill of the rect.

User avatar
wellington_grey
Posts: 5
Joined: Tue Oct 28, 2008 7:20 pm
Contact:

Re: Trouble with clipping and aligning

Postby wellington_grey » Tue Oct 28, 2008 11:50 pm

I'd convert the flag to a pattern and put it in the fill of the rect.


Could you give me a bit more detail on that? I'm not quite sure what you mean.

-Grey

PS: This is a flag where the first problem occurs: http://en.wikipedia.org/wiki/Image:Flag_of_Delaware.svg

User avatar
EarlyBlake
Posts: 302
Joined: Tue Jun 03, 2008 5:42 pm

Re: Trouble with clipping and aligning

Postby EarlyBlake » Tue Nov 04, 2008 7:27 pm

wellington_grey wrote:Could you give me a bit more detail on that? I'm not quite sure what you mean.


Go to the Menu Object --> Pattern --> Object to Pattern then go to the fill menu Shift C F pull up the Fill tab. Scroll over the boxes in the first row with you mouse to the one that says pattern and you new pattern should be the one on the top of the list.

Scroll dow to or search pattern on this page.
http://tavmjong.free.fr/INKSCAPE/MANUAL ... s-Patterns


Return to “Discuss Software Issues”