Skip to content

Commit 9477ce9

Browse files
authored
Merge pull request #24 from 343dev/imporvement/gifsicle
Replace gifsicle with @343dev/gifsicle
2 parents 98a1746 + 5e97be3 commit 9477ce9

File tree

5 files changed

+45
-1881
lines changed

5 files changed

+45
-1881
lines changed

.optimiztrc.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ module.exports = {
5252
careful: false, // write larger GIFs that avoid bugs in other programs
5353
colors: 256, // reduce the number of distinct colors to num or less; must be between 2 and 256
5454
lossy: 100, // alter image colors to shrink output file size at the cost of artifacts and noise
55+
gamma: 1, // set the color space/gamma correction to gamma, which can be a real number, ‘srgb’ (the default), or ‘oklab’
5556
},
5657
lossless: {
5758
optimize: 0,
5859
careful: true,
5960
colors: 256,
6061
lossy: 0,
62+
gamma: 'srgb',
6163
},
6264
},
6365

optimize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import fs from 'node:fs';
33
import os from 'node:os';
44
import path from 'node:path';
55

6+
import gifsicle from '@343dev/gifsicle';
67
import guetzli from '@343dev/guetzli';
7-
import gifsicle from 'gifsicle';
88
import pLimit from 'p-limit';
99
import sharp from 'sharp';
1010
import { optimize as svgoOptimize } from 'svgo';

0 commit comments

Comments
 (0)