Hi! Is there some way to manipulate the perspective, or make some deformation, warp, or similar, to bitmaps, pngs with transparency, or similar? I know i can trace, and apply path effects, but i wonder what is possible in bitmap level. Thanks any tip
I added succesfuly the "Raster Perspective" extension, but when it gives me this error, when trying to use it: "Traceback (most recent call last): File "C:\Program Files\Inkscape\share\inkscape\extensions\imagePerspective.py", line 25, in <module> from PIL import Image as PIL_Image File "C:\Program Files\Inkscape\lib\python3.12\site-packages\PIL\Image.py", line 97, in <module> from . import _imaging as core ImportError: DLL load failed while importing _imaging: The specified module could not be found.
rather than have these 3rd party extension files (imagePerspective.inx, imagePerspective.py) in the Inscape built in extensions folder, move them to here C:\Users\*username*\AppData\Roaming\inkscape\extensions. The extension works for me with the files there.
Hi dwhall! It doesnt matter where i put the two mentioned files, it says exactly the same error message. I installed trough the extensions manager, that put them in a subfolder of the path you mention above. I deleted the subfolder and put them in the extensions folder, but the same. I put them in the C:\Program Files\Inkscape\share\inkscape\extensions\, but no luck. Im not sure if im doing something wrong or the extension simply dont work in my computer. Is a win10 normal computer.
Forget my comment above, I think the error is more like because you have not followed the instructions with respect to drawing a perspective path and selecting both path and raster image before running the extension.
Hi dwhall, i really apreciate your help. I downloaded your svg, and the result is the same. I select both objects, then extensions>Raster perspective, and then this happens:
Im using the latest, not portable, version number says "Inkscape 1.4.2 (ebf0e94, 2025-05-08)". I tried with the portable version i have installed... same result, same message. I tried to run it in Lubunto or LinuxMint, but nor of them were able to open the ExtensionsManager, error said. strange.
Sorry I am at a loss. Beyond my abilities (clutching at straws might do a reinstall, but both portable and normal install not working suggests not likely going to fix it) Again clutching at straws try a preferences reset. Perhaps someone with more knowledge will chime in.
Hi dwhall, dont worry! You have been a good help! I never use the portable version, so, when it started, it gives the first time use welcome screen, so, the preference were clean. I guess that some other user would found this issue, since my machine is pretty standard. Im really looking to some mesh warp for bitmaps, in inkscape, but appear is not possible still. This perspective extension sounded great, a pitty it dont work in every machine, appear to be.
UPDATE: I tried it in a separated machine, with windows 10 and inkscape 1.4.2... it worked! So is my machine, i tought. But no. I changed the source image... the problem error is there. Is related appear to be to some properties of the source image, but im not sure wich one.
Hi! Is there some way to manipulate the perspective, or make some deformation, warp, or similar, to bitmaps, pngs with transparency, or similar?
I know i can trace, and apply path effects, but i wonder what is possible in bitmap level. Thanks any tip
I'd use a bitmap dedicated software : gimp.
Perhaps this extension will do it for you https://github.com/s1291/InkRasterPerspective
Thanks both! Yes, is so easy using Gimp&Krita. But sometimes is good to be able in the context you are placing it. I will try the extension.
I added succesfuly the "Raster Perspective" extension, but when it gives me this error, when trying to use it:
"Traceback (most recent call last):
File "C:\Program Files\Inkscape\share\inkscape\extensions\imagePerspective.py", line 25, in <module>
from PIL import Image as PIL_Image
File "C:\Program Files\Inkscape\lib\python3.12\site-packages\PIL\Image.py", line 97, in <module>
from . import _imaging as core
ImportError: DLL load failed while importing _imaging: The specified module could not be found.
rather than have these 3rd party extension files (imagePerspective.inx, imagePerspective.py) in the Inscape built in extensions folder, move them to here C:\Users\*username*\AppData\Roaming\inkscape\extensions. The extension works for me with the files there.
Hi dwhall! It doesnt matter where i put the two mentioned files, it says exactly the same error message. I installed trough the extensions manager, that put them in a subfolder of the path you mention above. I deleted the subfolder and put them in the extensions folder, but the same. I put them in the C:\Program Files\Inkscape\share\inkscape\extensions\, but no luck. Im not sure if im doing something wrong or the extension simply dont work in my computer. Is a win10 normal computer.
Forget my comment above, I think the error is more like because you have not followed the instructions with respect to drawing a perspective path and selecting both path and raster image before running the extension.
Test it with the attached TestRasterImagePerspective.svg Select both the brickwall raster and the perspective path before running the extension.
Hi dwhall, i really apreciate your help. I downloaded your svg, and the result is the same. I select both objects, then extensions>Raster perspective, and then this happens:
Hmmm! seems PIL_image file might be missing or a different version. What version if Inkscape are you using?
Im using the latest, not portable, version number says "Inkscape 1.4.2 (ebf0e94, 2025-05-08)". I tried with the portable version i have installed... same result, same message.
I tried to run it in Lubunto or LinuxMint, but nor of them were able to open the ExtensionsManager, error said. strange.
Sorry I am at a loss. Beyond my abilities (clutching at straws might do a reinstall, but both portable and normal install not working suggests not likely going to fix it) Again clutching at straws try a preferences reset. Perhaps someone with more knowledge will chime in.
Hi dwhall, dont worry! You have been a good help! I never use the portable version, so, when it started, it gives the first time use welcome screen, so, the preference were clean. I guess that some other user would found this issue, since my machine is pretty standard.
Im really looking to some mesh warp for bitmaps, in inkscape, but appear is not possible still. This perspective extension sounded great, a pitty it dont work in every machine, appear to be.
UPDATE: I tried it in a separated machine, with windows 10 and inkscape 1.4.2... it worked!
So is my machine, i tought. But no. I changed the source image... the problem error is there. Is related appear to be to some properties of the source image, but im not sure wich one.
Would suggest reset preferences as first step