Closed Doublonmousse closed 7 months ago
This is also an issue when exporting, right?
Yeah, I'm pretty sure it can happen when exporting. Though the size of files you need for it to happen is quite large so it's quite normal no one found the issue before.
The rsvg-convert
page says this about the unlimited -u
option
-u --unlimited
The SVG parser has some guards designed to mitigate large CPU or
memory consumption in the face of malicious XML. It may also
refuse to resolve URIs used to embed image data. If you are
running into such issues when converting a SVG, this option
allows to turn off these guards.
Describe the bug
Large images (svg and png) will fail to be copied to the clipboard if they are too large (~ 4 Mo is already too much)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Have the image be copied to the clipboard
Console Output
or
Desktop (please complete the following information):
Additional context
This is a limitation of
librsvg
if the loader is not called with an unlimited size, see here : https://gitlab.gnome.org/GNOME/librsvg/-/issues/819So calling
instead of
fixes the issue.