Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
fatteneder opened this issue Jul 21, 2022 · 4 comments · Fixed by #2449
Closed

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

fatteneder opened this issue Jul 21, 2022 · 4 comments · Fixed by #2449

Comments

@fatteneder
Copy link
Contributor

fatteneder commented Jul 21, 2022

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
Copy link
Contributor Author

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

@jkrumbiegel
Copy link
Member

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?

@fatteneder
Copy link
Contributor Author

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
Copy link
Contributor Author

Fixed by #2304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants