Skip to content

SVG images are translated lossy #368

Closed
typst/svg2pdf
#37

Description

That's maybe expected, but if so, should be added to the docs.

Here is an example figure.

Compiling

#image("fig.svg")

Will look a bit different compared to the original (tested with different viewers):
svg rendering

Activity

  1. ghost changed the title [-]SVG images are rendered lossy[/-] [+]SVG images are translated lossy[/+] on Mar 27, 2023
  2. added
    bug
    visualize
    on Mar 31, 2023
  3. added a commit that references this issue on May 3, 2023
  4. reknih commented on May 3, 2023

    @reknih
    Member

    Does the current commit still have this issue?

  5. laurmaedje commented on May 3, 2023

    @laurmaedje
    Member

    Does not panic for me anymore, but still has some (new?) issues.

  6. added
    svg
    on May 8, 2023
  7. LaurenzV commented on May 18, 2023

    @LaurenzV
    Collaborator

    I didn't see anything else wrong apart from the warnings that are printed to the console, which shouldn't cause any bugs in the rendered image though (I raised an issue here, so this should be fixed soon). Did you notice any other visual inaccuracies apart from that?

  8. added a commit that references this issue on May 23, 2023
  9. Dherse commented on Jun 9, 2023

    @Dherse
    Contributor

    From what I can tell, there is also a problem where SVGs can cause a memory leak in some scenarios. I don't have a minimum reproducible example as I simply don't have time to make one, but there seems to be something wrong when removing SVGs from a typst file :x

  10. LaurenzV commented on Jul 21, 2023

    @LaurenzV
    Collaborator

    Will be fixed once this PR gets merged and upstreamed.

  11. LaurenzV commented on Jul 22, 2023

    @LaurenzV
    Collaborator

    Okay, it's still not quite fixed unfortunately. It displays fine on Chrome and Acrobat, but still has a couple of issues when opened in Firefox and Safari. Not sure if this is something we can fix on our side, but I'll see what can be done.

  12. added a commit that references this issue on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsvgvisualize

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions