mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Allow WebP encoding effort of 0 (#3261)
This commit is contained in:
@@ -133,6 +133,12 @@ describe('WebP', function () {
|
||||
});
|
||||
});
|
||||
|
||||
it('should set effort to 0', () => {
|
||||
const effort = sharp().webp({ effort: 0 }).options.webpEffort;
|
||||
|
||||
assert.strictEqual(effort, 0);
|
||||
});
|
||||
|
||||
it('invalid loop throws', () => {
|
||||
assert.throws(() => {
|
||||
sharp().webp({ loop: -1 });
|
||||
|
||||
Reference in New Issue
Block a user