[SOLVED] Stretch & squish? (Like "Cage Transform" in GIMP)

Post questions on how to use or achieve an effect in Inkscape.
DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

[SOLVED] Stretch & squish? (Like "Cage Transform" in GIMP)

Postby DavidBrennan » Tue Apr 09, 2013 9:49 am

In Inkscape, is there a way to take an image and then, at user-designated points, stretch and squish it? The comparable tool in GIMP is the "Cage Editor", which is pretty darn cool.

Currently, there seem to be two primary ways of achieving distortions in Inkscape: simply scaling the whole object, which is uniform across the shape and therefore very limiting, or else grabbing the individual control points and moving them, which can be too time-consuming if the vector object is at all complex. The Perspective Extension works well, but this is also fairly limited.

The effect that I'm specifically trying to achieve is to stretch out text, just like in my sample below (which was achieved in GIMP, not Inkscape).

Image

As always, great thanks and respect to everybody at Inkscape. God bless you!
Last edited by DavidBrennan on Tue Apr 09, 2013 10:20 am, edited 1 time in total.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: Stretch & squish image? (Llike "Cage Transform" in GIMP)

Postby v1nce » Tue Apr 09, 2013 10:10 am

turn your text into a path (shift ctrl C)
launch path effect (shift ctrl 7)
click [+] to add effect
add enveloppe deformation
click :tool_node: and bend top and bottom path

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

Re: Stretch & squish image? (Llike "Cage Transform" in GIMP)

Postby Lazur » Tue Apr 09, 2013 10:13 am

View this topic:
viewtopic.php?f=11&t=13496&p=53901&hilit=spirolive#p53901
If the mesh tool works right it may do the trick (?).

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Stretch & squish image? (Llike "Cage Transform" in GIMP)

Postby ragstian » Tue Apr 09, 2013 10:17 am

Hi.

Something similar is available for Inkscape with the help of an extension. Go to the Eggbot page; http://wiki.evilmadscience.com/The_Eggbot_Extensions

Download and install the extension.
( While you're at the page - order an Eggbot - it's loads of fun!)

To use you have to turn your text into path, turn it 90° and apply; Extension - Eggbot Contributed - Stretch, after the stretch you will have to turn it 90° back.

Image

Chime back if you need more assistance!

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: Stretch & squish image? (Llike "Cage Transform" in GIMP)

Postby DavidBrennan » Tue Apr 09, 2013 10:19 am

v1nce wrote:turn your text into a path (shift ctrl C)
launch path effect (shift ctrl 7)
click [+] to add effect
add enveloppe deformation
click :tool_node: and bend top and bottom path

This is working very well. Thanks a lot, vince!

(Thanks also to Lazur and Ragstian. I will check out the link and the Eggbot extension, presently.)

User avatar
ragstian
Posts: 1181
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby ragstian » Tue Apr 09, 2013 10:24 am

Hi.

Learning something new every day.
I'am impressed with the response time - four answers in 30 min - not bad!

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby DavidBrennan » Tue Apr 09, 2013 10:30 am

Yeah, I was very pleasantly surprised, too. When I first started posting here a year or so ago, it seemed most things took a day or so to get a reply (alas, all I do is post requests for help, so that's the type of topic of which I'm referring to).

So this is good. (Also, I think I'll have to look into Eggbot, as the Envelope Deformation isn't working quite as perfectly as I'd hoped - although it's definitely okay.)

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

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby druban » Tue Apr 09, 2013 2:23 pm

Well, somehow I thought the envelope LPE might not do the trick for you... The GIMP cage does spoil users, although to be fair it does take about a year for an image of any size to be transformed and is kind of impractical for largish (i.e. 1000s of pixel images). But look here , anyway. But here is the real good stuff, and courtesy of Brainless our own forum member who has compiled the experimental extensions for windows users you can use it today in a development build which is unstable but better than a poke in the eye with a sharp stick.
Here's an example - you can see the nodes (normally not colored) that I have moved around in the before and after, and the result.

rect96.png
rect96.png (96.44 KiB) Viewed 9153 times
Your mind is what you think it is.

DavidBrennan
Posts: 41
Joined: Thu Jan 19, 2012 10:33 pm

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby DavidBrennan » Tue Apr 09, 2013 3:20 pm

druban wrote:Well, somehow I thought the envelope LPE might not do the trick for you... The GIMP cage does spoil users, although to be fair it does take about a year for an image of any size to be transformed and is kind of impractical for largish (i.e. 1000s of pixel images). But look here , anyway. But here is the real good stuff, and courtesy of Brainless our own forum member who has compiled the experimental extensions for windows users you can use it today in a development build which is unstable but better than a poke in the eye with a sharp stick.
Here's an example - you can see the nodes (normally not colored) that I have moved around in the before and after, and the result.

rect96.png

I use Blender, and the how the Lattice Modifier works on 3D objects there would be perfect for the effect here in Inkscape, so hopefully that development continues. (The Lattice Mod in Blender is conceptually similar to the Cage Deform in GIMP.) It appears that the only way to use that Lattice tool is through the development build? Then thanks and acknowledgements to Brainless for building one for Windows (which I do indeed use) and I will probably end up trying that, as the Envelope Effect Editor is a lil' bit too far from ideal.

(And I agree with you about GIMP's Cage Transform: It is cool as heck....but is agonizingly slow and, worse still, seems pretty darn buggy. But I'm just observing, not complaining!)

User avatar
Maestral
Posts: 982
Joined: Sat Aug 27, 2011 7:10 am

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby Maestral » Tue Apr 09, 2013 7:05 pm

Eggbot extensions and Lattice are pretty neat, but perhaps you could give another go for the Envelope Deformation. This time try to separate lines of text and then apply E.Deformation. Take a look on this topic
:tool_zoom: <<< click! - but, those with a cheaper tickets should go this way >>> :!:

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

Re: [SOLVED] Stretch & squish? (Like "Cage Transform" in GIM

Postby brynn » Wed Apr 10, 2013 3:53 am

Or go old school and use the Tweak tool. :D

I've actually tried to use the Envelope LPE to do precisely this. But it is pretty tricky. Up to a certain point, it works perfectly. But if the curve needs to be very deep, it starts to distort around the 4 corners. At least that was my experience.


Return to “Help with using Inkscape”