Apply perspective transformation to bitmap images using the selected path as envelope, without the need to use an external software to transform the image. It works for both embedded and linked images.
To install this extension, you can either use the extensions manager: (from the menu Extensions > Manage Extensions...), or follow the instructions below.
cd $HOME/.config/inkscape/extensions
git clone https://github.com/s1291/InkRasterPerspective.git
- Open Inkscape (if it is already open, close then re-open it) and you should find the extension under: Extensions > Raster Perspective > Perspective.
- Download the most recent version (direct link: zip)
- Extract it and copy the files
imagePerspective.py
andimagePerspective.inx
toC:\Program Files\Inkscape\share\inkscape\extensions
.
This extension was tested with the following versions of Inkscape
1.2.x
,1.3.x
, and1.4-dev
.
- Select the raster image and the quadrangle path (envelope) . Make sure the envelope nodes are ordered as follows:
For more details on how to find the nodes order for a path, check out this post.
- Extensions > Raster Perspective > Perspective
See below:
Samir OUCHENE, 2021-2024
All code is licensed under the GNU General Public License version 3. See the license file for details.