mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Allow parsing of SVG attribute values >10MB #2195
This commit is contained in:
parent
40c00035ee
commit
86acf2460e
@ -13,6 +13,9 @@ Requires libvips v8.9.1
|
||||
[#2188](https://github.com/lovell/sharp/pull/2188)
|
||||
[@dimadeveatii](https://github.com/dimadeveatii)
|
||||
|
||||
* Allow SVG input with large inline images to be parsed.
|
||||
[#2195](https://github.com/lovell/sharp/issues/2195)
|
||||
|
||||
### v0.25.2 - 20th March 2020
|
||||
|
||||
* Provide prebuilt binaries for Linux ARM64v8.
|
||||
|
@ -279,6 +279,9 @@ namespace sharp {
|
||||
vips::VOption *option = VImage::option()
|
||||
->set("access", descriptor->access)
|
||||
->set("fail", descriptor->failOnError);
|
||||
if (imageType == ImageType::SVG) {
|
||||
option->set("unlimited", TRUE);
|
||||
}
|
||||
if (imageType == ImageType::SVG || imageType == ImageType::PDF) {
|
||||
option->set("dpi", descriptor->density);
|
||||
}
|
||||
@ -325,6 +328,9 @@ namespace sharp {
|
||||
vips::VOption *option = VImage::option()
|
||||
->set("access", descriptor->access)
|
||||
->set("fail", descriptor->failOnError);
|
||||
if (imageType == ImageType::SVG) {
|
||||
option->set("unlimited", TRUE);
|
||||
}
|
||||
if (imageType == ImageType::SVG || imageType == ImageType::PDF) {
|
||||
option->set("dpi", descriptor->density);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user