How can i create a border that is proportional to image?

Post questions on how to use or achieve an effect in Inkscape.
inksquid
Posts: 26
Joined: Thu Feb 25, 2010 10:31 pm

How can i create a border that is proportional to image?

Postby inksquid » Sat Jun 23, 2012 10:24 am

I want to create a border for an image that we have. We want the border to have the same distance all around from the image inside. How can we do this easily?
See attached inskcape file.

Thank you.
Attachments
creating a border.svg
(42 KiB) Downloaded 191 times

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

Re: How can i create a border that is proportional to image?

Postby druban » Sat Jun 23, 2012 11:21 am

I hope this works for you. Ctrl-shift-A brings up the align dialog. You must group thing ctrl-G in order to use the align dialog without everything ending up in one pile, Sending to back is done from the :tool_selector: control bar. Note that the 100 px stroke only shows as a 50 px stroke since half of it is behind the opaque rectangle.
creating a borderanswer.png
creating a borderanswer.png (176.94 KiB) Viewed 2222 times
Your mind is what you think it is.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How can i create a border that is proportional to image?

Postby brynn » Sat Jun 23, 2012 11:37 am

You could use Align and Distribute dialog. Someone else may have another or even a better technique. But this is what I'd do:

1 - Decide what the distance is that you want for the margin.
2 - Using the red cat & dog leaf, draw a rectangle that is the height of the red leaf + (2 x margin distance). I say 2 times the margin distance to account for above and below the red leaf.
3 - In Align and Distribute dialog, where it says Relative to: choose First Selected.
4 - Select the text first, hold Shift, then select the red leaf.
5 - Click "Center on horizontal axis". (This makes the red leaf and the text centered to each other vertically.)
6 - Group the text and the red leaf.
7 - Note the width of that new group. Go back to the rectangle you made, and make the width of it equal to the width of the group + (2 x margin distance).
8 - Select the rectangle first, hold Shift, then select the group.
9 - Click "Center on horizonal axis" and "Center on vertical axis".

Now everything should be all centered and spaced properly. (Unless I did something backwards. I didn't actually do this, but just saying how I'd do it. It might need a tweak or 2.)

And naturally, I see druban has posted while I was typing, lol. I also see that he has a different technique. His is probably much more elegant :D

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

Re: How can i create a border that is proportional to image?

Postby druban » Sun Jun 24, 2012 11:43 am

brynn wrote:His is probably much more elegant


Of course, because 'elegant' is not only my middle name but the middle name of my middle name, and also my phone number and shoe size! :lol:
Your mind is what you think it is.

inksquid
Posts: 26
Joined: Thu Feb 25, 2010 10:31 pm

Re: How can i create a border that is proportional to image?

Postby inksquid » Sun Jun 24, 2012 5:16 pm

Thanks, Druban and brynn

inksquid
Posts: 26
Joined: Thu Feb 25, 2010 10:31 pm

Where is the "selector tool's control bar"?

Postby inksquid » Mon Jul 16, 2012 12:54 pm

druban


I'm on the third step of your instructions. Where is the "selector tool's control bar"?

inksquid
Posts: 26
Joined: Thu Feb 25, 2010 10:31 pm

Found the "selector tool's control bar"

Postby inksquid » Mon Jul 16, 2012 12:59 pm

Druban,
found the toolbar to adjust width and height.


Return to “Help with using Inkscape”