NBISweden / aMeta

Ancient microbiome snakemake workflow
MIT License
21 stars 14 forks source link

The png file for authentication plots doesn't render well on mac #151

Closed ZoePochon closed 6 months ago

ZoePochon commented 11 months ago

image Left png file, right pdf file.

LeandroRitter commented 6 months ago

convert has a background argument. I believe adding -background white to the convert command at the very end of authentic.R should fix the issue. Here https://stackoverflow.com/questions/10934456/imagemagick-pdf-to-jpgs-sometimes-results-in-black-background they also recommend adding -alpha remove

LeandroRitter commented 6 months ago

@ZoePochon I think I fixed it in the latest PR, however feel free to reopen if you see problems with rendering on Mac again