Makie.jl icon indicating copy to clipboard operation
Makie.jl copied to clipboard

Artificial colored edges in CairoMakie when saving an image to PDF.

Open fatteneder opened this issue 2 years ago • 3 comments

MWE

using CairoMakie
CairoMakie.activate!()
using FileIO
using Makie

img = load(Makie.assetpath("doge.png"))
i = image(permutedims(img)[:,end:-1:1])
save(joinpath(@__DIR__, "mwe.pdf"), i)

Output: image

Adding fxaa=true to image does not fix it either. Saving as png does work though.

Related: #2080

fatteneder avatar Jul 21 '22 18:07 fatteneder

Could this be an issue with a transparent background in the png file?

fatteneder avatar Jul 21 '22 18:07 fatteneder

Have you looked at this with multiple different pdf viewers? Just to make sure we're not looking at an implementation-dependent artifact here. Or is the artifact really baked into a bitmap?

jkrumbiegel avatar Jul 21 '22 18:07 jkrumbiegel

I checked with

  • Evince
  • Okular
  • Firefox
  • Chromium and all show the same artifacts.

Here is the PDF file if you want to check yourself: mwe.pdf

fatteneder avatar Jul 21 '22 19:07 fatteneder

Fixed by #2304

fatteneder avatar Nov 20 '22 19:11 fatteneder