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

Figure conversion darkens figure #1170

Open
Tracked by #1171
roaldarbol opened this issue Apr 30, 2024 · 0 comments
Open
Tracked by #1171

Figure conversion darkens figure #1170

roaldarbol opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@roaldarbol
Copy link
Contributor

Description

Currently, if embedding (large) figures such as PDFs, the conversion step darkens them. It happens for both the web rendering and PDF generation with Typst.

Proposed solution

Find the right settings for imagemagick which handles the conversion.

@rowanc1 previously pointed me to the code which is here:
https://github.com/executablebooks/mystjs/blob/tex/algo/packages/myst-cli/src/utils/imagemagick.ts#L187

convert -density 600 -colorspace RGB ${image} -trim ${png}
@roaldarbol roaldarbol added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant