mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-14 09:39:15 +00:00
Update WebP & WebP2 to latest upstream
Includes renaming "speed" to "effort" in WebP2.
This commit is contained in:
committed by
Ingvar Stepanyan
parent
618a4d777b
commit
869d3f7732
@@ -52,7 +52,7 @@ export class Options extends Component<Props, State> {
|
||||
|
||||
const modifyState: Partial<State> = {
|
||||
options,
|
||||
effort: options.speed,
|
||||
effort: options.effort,
|
||||
alphaQuality: options.alpha_quality,
|
||||
passes: options.pass,
|
||||
sns: options.sns,
|
||||
@@ -107,7 +107,7 @@ export class Options extends Component<Props, State> {
|
||||
};
|
||||
|
||||
const newOptions: EncodeOptions = {
|
||||
speed: optionState.effort,
|
||||
effort: optionState.effort,
|
||||
quality: optionState.lossless
|
||||
? 100 - optionState.slightLoss
|
||||
: optionState.quality,
|
||||
|
||||
Reference in New Issue
Block a user