mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-04 01:13:38 +00:00
Don't change WebP format options for each image loaded from a sequence
This commit is contained in:
parent
a5bdf461f4
commit
24133498b0
@ -154,9 +154,11 @@ bool WebPFormat::onLoad(FileOp* fop)
|
||||
break;
|
||||
}
|
||||
|
||||
base::SharedPtr<WebPOptions> webPOptions(new WebPOptions());
|
||||
fop->sequenceSetFormatOptions(webPOptions);
|
||||
webPOptions->setLossless(std::min(config.input.format - 1, 1));
|
||||
if (!fop->sequenceGetFormatOptions()) {
|
||||
base::SharedPtr<WebPOptions> webPOptions(new WebPOptions());
|
||||
webPOptions->setLossless(std::min(config.input.format - 1, 1));
|
||||
fop->sequenceSetFormatOptions(webPOptions);
|
||||
}
|
||||
|
||||
WebPIDelete(idec);
|
||||
WebPFreeDecBuffer(&config.output);
|
||||
|
Loading…
x
Reference in New Issue
Block a user