Inkscape.org
Beyond the Basics manipulating bitmaps perspective.
  1. #1
    marcecolins marcecolins @marcecolins

    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

  2. #2
    David248 David248 @David248

    I'd use a bitmap dedicated software : gimp.

  3. #3
    dwhall dwhall @dwhall

    Perhaps this extension will do it for you https://github.com/s1291/InkRasterPerspective

  4. #4
    marcecolins marcecolins @marcecolins

    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.

  5. #5
    marcecolins marcecolins @marcecolins

    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.

  6. #6
    dwhall dwhall @dwhall

    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.

  7. #7
    marcecolins marcecolins @marcecolins

    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.

  8. #8
    dwhall dwhall @dwhall

    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.

  9. #9
    dwhall dwhall @dwhall

    Test it with the attached TestRasterImagePerspective.svg Select both the brickwall raster and the perspective path before running the extension.

    Testrasterimageperspective
  10. #10
    marcecolins marcecolins @marcecolins

    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:
     

  11. #11
    dwhall dwhall @dwhall

    Hmmm! seems PIL_image file might be missing or a different version. What version if Inkscape are you using?

  12. #12
    marcecolins marcecolins @marcecolins

    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. 

  13. #13
    dwhall dwhall @dwhall

    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.

  14. #14
    marcecolins marcecolins @marcecolins

    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.

  15. #15
    marcecolins marcecolins @marcecolins

    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.

  16. #16
    dwhall dwhall @dwhall

    Would suggest reset preferences as first step

Inkscape Inkscape.org Inkscape Forum Beyond the Basics manipulating bitmaps perspective.