Resizing an svg to selection.

Post questions on how to use or achieve an effect in Inkscape.
Daimoth
Posts: 2
Joined: Mon Nov 09, 2015 11:59 am

Resizing an svg to selection.

Postby Daimoth » Mon Nov 09, 2015 12:12 pm

Trying to "crop" a particular pattern out of some stock filigrees I found while keeping the image in vector format. The guide here has me going to document properties with the rectangle selected and choosing to change my canvass size based on that selection. I want to keep it in vector format, not export to png, but to isolate that one pattern. Is this possible? I assume it is.

Thanks in advance.

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

Re: Resizing an svg to selection.

Postby brynn » Mon Nov 09, 2015 2:03 pm

If the stock pattern is a raster format, even if you save it in an SVG (vector) file, it will still be a raster image. Simply saving as SVG or other vector fomat won't automatically convert it to vector. It depends on what you're going to do with it in the end, whether this matters or not.

However, to answer your question more directly, the step you mentioned about resizing the canvas to selection is not the same thing as exporting to PNG. It has nothing to do with exporting to PNG. It's simply changing the page size/dimensions.

Oh I see. Now that I've looked at the tutorial, I see the next step is to export to PNG. So now I understand better.

Without knowing what you planning to do with the cropped stock image, I can't say whether you want the page size to be the same as your "cropped" image or not. If you could share a little more, we could probably give you more definite info.

Oh, there is a new extension with version 0.91 that might help here. Let me find it.... brb

Edit
Ok, it's not new with 0.91. It's just that I recently found it. Well at least for the one I was thinking about, which is: http://cellbio.emory.edu/bnanes/svg-embed-and-crop/. But there IS a new one too, for cropping raster images, which is Extensions menu > Raster > Crop. As far as I know, it's a true crop for raster images only.

User avatar
bartovan
Posts: 191
Joined: Sun Feb 09, 2014 4:14 am
Location: Belgium
Contact:

Re: Resizing an svg to selection.

Postby bartovan » Mon Nov 09, 2015 6:05 pm

As far as I understand it, you can't crop a vector object/pattern/group/... in vector format. There is clipping, but that's not the same.
So apart from delving into your objects and starting to prune away the unwanted pieces (node editing, path operations, etc), I don't think what you want can be done. You can't just put a rectangle over a vector drawing and say: just keep what's in the rectangle. (Path operations are what comes closest).

Someone correct me if I'm wrong...
Portfolio bartovan.com
Tumblr / Instagram / Pinterest / Facebook / Twitter / OpenClipArt
Shop at Society6 / RedBubble
Using latest stable Inkscape on Ubuntu (current stable release) and Win 7.

Daimoth
Posts: 2
Joined: Mon Nov 09, 2015 11:59 am

Re: Resizing an svg to selection.

Postby Daimoth » Mon Nov 09, 2015 10:15 pm

Thanks!

I'm going to use one of the patterns in Blender; 3d modelling. So the next step would be to make the page the same dimensions as my "crop"?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Resizing an svg to selection.

Postby Lazur » Tue Nov 10, 2015 12:37 am

You will need path operations.
Blender imports svg's paths as curves, in 1:1 scale -default blender unit is m, so your imported drawing might appear tiny.

Just a note that svg has a term "pattern", which stands for an object fill attribute, that is not an object blender would understand.


Return to “Help with using Inkscape”