Inkscape.org
Beyond the Basics Why clip image gives different result than mask when exporting to pdf ?
  1. #1
    Grobe Grobe @Grobe

    Inkscape 1.3.2 (Flatpak) on Linux Mint Cinnamon.

    I made a A4 page with two imported jpg images. The first jpg image I applied mask with a closed path, and for the second jpg image, I used clip with a similar closed path.

    However, when exporting to pdf, only the jpg image that I use "clip path" onto, appeared as expected. The first image that I'd applied mask, appeared with very jagged/blurry edges where I expected a "clean cut".

    After a couple of test, this difference between clip path and mask seems consistent.

     

    How comes? Is there any reason I should expect difference between clip and mask ?

  2. #2
    Polygon Polygon @Polygon🌶

    The Mask is treated like a bitmap so it´s scale depended.

  3. #3
    Grobe Grobe @Grobe

    Ok, that explain some of it.

    But - What object (link to jpg image or cut path), and how to tweak so that the pdf output get at least somehow acceptable? In my pdf (family album so cannot/wont upload example) the output dpi of the edge seems to be in the ballpark of 3-5 dpi - very large blurred "staircases" following the path where the cut edge is supposed to go.

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    I'd use clipping where possible, and set the rasterize filter effects in PDF export to >300dpi.

  5. #5
    Grobe Grobe @Grobe
    *

    Well, about the "rasterize filter effects in PDF export" - this setting have zero effect for me. Tried to change to a crazy value like 1200, but Inkscape generates a file that seemingly is identical (haven't compared it bit-wise).

     

    Inkscape 1.3.2 (091e20ef0f, 2023-11-25)

        GLib version:     2.78.1
        GTK version:      3.24.38
        glibmm version:   2.66.1
        gtkmm version:    3.24.5
        libxml2 version:  2.11.5
        libxslt version:  1.1.39
        Cairo version:    1.18.0
        Pango version:    1.51.0
        HarfBuzz version: 8.1.1

        OS version:       GNOME 45 (Flatpak runtime)

     

  6. #6
    Tyler Durden Tyler Durden @TylerDurden

    I am getting similar results on my test files. :(

    Please file a bug report.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Why clip image gives different result than mask when exporting to pdf ?