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

SVG cleanup losing portions of image #4006

Open
skosarin opened this issue Jan 18, 2023 · 1 comment
Open

SVG cleanup losing portions of image #4006

skosarin opened this issue Jan 18, 2023 · 1 comment
Labels

Comments

@skosarin
Copy link
Contributor

skosarin commented Jan 18, 2023

When loading an SVG into the CMS, it is losing a portion of the image during compression/cleanup of the file.

Discussed in discord here:
https://discord.com/channels/517772094482677790/701815369005924374/1065382944035831818

@skosarin skosarin added the bug label Jan 18, 2023
@boutell
Copy link
Member

boutell commented Jan 19, 2023

Interesting. My question is whether this is due to something Apostrophe is specifically doing, or can be reproduced using just the dompurify module (what we're actually using to sanitize the svg). If it is the latter, then I suggest updating the version of dompurify in apostrophe to the latest major release, if it's not already. If that doesn't help, opening a ticket on dompurify itself is probably the best way forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants