mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
Ensure SVG scale-on-load optimisation uses newly exposed params (#4415)
Follow-up to commit c4b1d80.
This commit is contained in:
parent
e688c53659
commit
76995deefa
@ -276,6 +276,8 @@ class PipelineWorker : public Napi::AsyncWorker {
|
|||||||
} else if (inputImageType == sharp::ImageType::SVG) {
|
} else if (inputImageType == sharp::ImageType::SVG) {
|
||||||
option->set("unlimited", baton->input->unlimited);
|
option->set("unlimited", baton->input->unlimited);
|
||||||
option->set("dpi", baton->input->density);
|
option->set("dpi", baton->input->density);
|
||||||
|
option->set("stylesheet", baton->input->svgStylesheet.data());
|
||||||
|
option->set("high_bitdepth", baton->input->svgHighBitdepth);
|
||||||
|
|
||||||
if (baton->input->buffer != nullptr) {
|
if (baton->input->buffer != nullptr) {
|
||||||
// Reload SVG buffer
|
// Reload SVG buffer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user