Inkscape.org
Beginners' Questions How to Crop Object?
  1. #1
    rainingmoondrops rainingmoondrops @rainingmoondrops

    I have an object that I made, I drew it but I don't remember if I drew it in Inkscape or if I drew it in another program and then converted it to an SVG. For some reason, the edges of the object are a little ways out from the actual edges of the drawing, which means if I tell Inkscape to Resize Page to Fit, there's empty space around the image. I do not want this empty space, I have no idea why it's there, and I haven't been able to find any helpful answers on this forum or by googling. Please help!

    I'm using Windows 11 and Inkscape 1.3.2 (091e20e, 2023-11-25, custom)

    Screenshot 2024 11 05 233108
  2. #2
    Polygon Polygon @Polygonβš–πŸŒΆ

    From the screenshot it donβ€˜t look like an SVG but a bitmap. Check out by selecting and having a look at the Status BarΒ at the bottom of the Inkscape window or open Layers and Objects panel for what you have in your file,

  3. #3
    Tyler Durden Tyler Durden @TylerDurdenβš–

    Cropping can be achieved by using a rectangle in front of the object, selecting both then using Object>Clip>set.

    http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Clip-Clipping.html

  4. #4
    rainingmoondrops rainingmoondrops @rainingmoondrops

    @Polygon It says it's an SVG

    @TylerDurden I looked at clipping, and it doesn't do what I need. I need the extra space to just not exist, but based on various questions and answers on here regarding clipping, clipping just hides stuff, it doesn't actually make it not exist.

  5. #5
    Polygon Polygon @Polygonβš–πŸŒΆ

    Where does it says itΒ΄s a SVG? The file extension? SVG is just a container file format like PDF. Select your object and check Status Bar at the bottom of theInkscape window and report back.Β 

  6. #6
    Tyler Durden Tyler Durden @TylerDurdenβš–

    It's common for SVG files to contain bitmap and vector objects.

    If you need to remove actual bitmap data (true crop) from the file there is a crop bitmap extension.

    If you need to remove vector geometry, boolean operations are commonly used.Β http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Paths-Combining.html