Fitting images/objects to a frame

Post questions on how to use or achieve an effect in Inkscape.
higgylm
Posts: 2
Joined: Sat Nov 28, 2009 4:29 am

Fitting images/objects to a frame

Postby higgylm » Tue Sep 06, 2011 8:40 pm

Is there an inkscape extension that allows objects to be fitted into a frame automatically adjusting the size of the object, like can be achieved in InDesign?

http://help.adobe.com/en_US/indesign/cs ... -8000.html

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

Re: Fitting images/objects to a frame

Postby brynn » Tue Sep 06, 2011 9:55 pm

I'm not familiar with that program, unfortunately. But I do know there are some extensions for the web, such as Web Slicer, and exporting html. I'm really not familiar with them either. But you could have a look :D Just look in the Extensions menu > Web.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Fitting images/objects to a frame

Postby Xav » Wed Sep 07, 2011 8:40 pm

higgylm wrote:Is there an inkscape extension that allows objects to be fitted into a frame automatically adjusting the size of the object, like can be achieved in InDesign?

http://help.adobe.com/en_US/indesign/cs ... -8000.html



InDesign and Inkscape are conceptually different programs - a desktop publishing app vs a vector graphics program. So Inkscape doesn't have a concept of frames in this way. Scribus would be a closer match to InDesign, and it does use frames to contain elements on the page. With Inkscape objects just exist on their own without having to be placed into a frame.

If, however, you manually draw an object that you want to use as a frame (e.g. a rectangle with stroke but no fill), you can manipulate an image or other object (or group of objects) to fit into it by enabling snapping - particularly cusp nodes - and then just dragging two opposing resize handles until they snap into the "frame" element. I'm not aware of a way to automate this, however.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Fitting images/objects to a frame

Postby Xav » Thu Sep 08, 2011 5:05 pm

Thinking about it last night I realised that there is an automated way of at least getting close to what you want (or what I think you want).

If you select the "frame" element and copy it to the clipboard, you can use the Edit=>Paste Size options to make your objects take on the width and/or height of the frame. Conversely if you copy the object to the clipboard you could use the same to make the frame match the dimensions of the object.

Note that this does only alter the width and height - it doesn't move the object to be centred within the frame. For that you'll need to use Object=>Align and Distribute to centre your object within the frame. It doesn't matter whether you centre it before or after resizing, the effect is the same.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter


Return to “Help with using Inkscape”