GIMP: PDF export introduces artifacts on edges where there is no background

This is a followup question to gimp: Background removal gives gray fringe, when exported as pdf:

To reproduce the problem you have to follow these five steps:

  1. In GIMP, create a New Fileo with Advanced Options → Color space: RGB color and Fill with: Background color (should be white to see the problem).
  2. Add an alpha channel to your background.
  3. Take the Free Select Tool and select an arbitrary area of the picture like this:

    enter image description here

  4. Press delete and you will end up with something like this:

    enter image description here

  5. Choose File → Export as… → PDF and open it in your PDF viewer. You will end up with this:

    enter image description here

Why does this gray line appear? How can I get rid of it without flattening the image? Note that the gray line also appears, when first exporting the image as PNG and converting it to PDF afterwards. It seems as if the different exporting options have no effect on the outcome.


As soon as you select ‘Export as’ option in the file menu, you are directed to a dialog box where you specify the name of the file. When you click export you get an option dialog box. Select the Convert bitmaps to vector graphics where possible in export dialog box. Resulting PDF won’t have a fringe.


Source : Link , Question Author : Wamseln , Answer Author : chanduc

Leave a Comment