Makie.jl
Makie.jl copied to clipboard
Artificial colored edges in CairoMakie when saving an image to PDF.
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:
Adding fxaa=true
to image
does not fix it either.
Saving as png
does work though.
Related: #2080
Could this be an issue with a transparent background in the png
file?
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?
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
Fixed by #2304