You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add support for raster image interpolation in PDF viewers #1400
feature requestNew feature or requestgood contributionSuitable for contribution, but unlike "good first issue", it may need prior experiencepdfRelated to PDF export or PDF embedding.
The latex \includegraphics function has an interpolate parameter, that when set to true produces PDFs that scale images in higher quality (when zooming in) as compared to typst. I would like to request that a similar feature/flag be added to typst.
Use Case
I write documents that include a lot of screenshots in PNG format. These screenshots only take up a small portion of the size of the page. When the PDF reader zooms in on these screenshots, the image quality should be maintained.
Here is what I see when I zoom in on the screenshot in the typst-generated PDF:
And the latex-generated one, which looks somewhat nicer:
We can discuss this! It's worth noting that PDF/X forbids the interpolate keys (likely to ensure reproducibility across viewers because the PDF spec does not specify how to interpolate).
feature requestNew feature or requestgood contributionSuitable for contribution, but unlike "good first issue", it may need prior experiencepdfRelated to PDF export or PDF embedding.
Activity
reknih commentedon Jun 6, 2023
We can discuss this! It's worth noting that PDF/X forbids the interpolate keys (likely to ensure reproducibility across viewers because the PDF spec does not specify how to interpolate).
feat: allow user to choose how images should be scaled
feat: allow user to choose how images should be scaled
chcore commentedon Feb 19, 2025
This was implemented in version 0.13.0, thank you!