apostrophe icon indicating copy to clipboard operation
apostrophe copied to clipboard

SVG cleanup losing portions of image

Open skosarin opened this issue 2 years ago • 1 comments

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 avatar Jan 18 '23 22:01 skosarin

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.

boutell avatar Jan 19 '23 12:01 boutell