NBISweden / aMeta

Ancient microbiome snakemake workflow
MIT License
19 stars 15 forks source link

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

Closed ZoePochon closed 1 month ago

ZoePochon commented 6 months ago

image Left png file, right pdf file.

LeandroRitter commented 1 month 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 1 month 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