how to distort or scew inserted images in inkscape?

Asked by Christian Hartmann on 2008-10-23

I need do insert images ito a drawing

for that I need to

add perspective
or distort them

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
mahfiaz
Solved:
2008-10-23
Last query:
2008-10-23
Last reply:
2008-10-23

The only possible transformations (for bitmap images) in inkscape are currently scale, rotation and skew.
In development versions you can create a bitmap copy (alt+b), edit the a bitmap externally (using gimp, for instance. right click on the image and select the "edit externally" command for that), then apply the perspective distortion or any transformation you want in that program. When you save the file back it will be relinked inside inkscape to the transformed version.

Best mahfiaz (mahfiaz) said : #2

You can skew images. When image is selected, click on it. The rotation and skew handles appear.
In "Effects"->"Raster" there are "Swirl" and "Weave" effects, probably more, which use imagemagick to transform the bitmap. Anything else, including perspective, you have to apply to image before importing it into inkscape (see linking). You may use GIMP for this. Also note, that using Swirl +10 and Swirl -10 does not get you to the same picture, as the transformations are rendered one time and forever, so be aware of possible loss of quality, when your workflow isn't smart enough.

o k
that means
if I need to fit an image into a square in perspective, I have to export the path, open it in Gimp, fit the image in with the perspective tool, save it and than insert it in the drawing. no other way, right?

mahfiaz (mahfiaz) said : #4

Exactly. But if you are willing to hassle, then this ought not to be deadly hard to create a extension which takes an example rectangle and image selected and uses imagemagick to produce perspective image.

Thank you anyway.
I did as we said
As far as I remember also in Illustrator it was impossible todo this
directly.
But un Correl you could.

I think this could be a suggestion for one of the next versions of inkscape

mahfiaz wrote:
> Your question #48807 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/48807
>
> mahfiaz posted a new comment:
> Exactly. But if you are willing to hassle, then this ought not to be
> deadly hard to create a extension which takes an example rectangle and
> image selected and uses imagemagick to produce perspective image.
>
>

--
Christian Hartmann
via Vitruvio 42
I – 20124 Milano
+39 348 4908985