Compare commits
2 Commits
d65a418092
...
d0a01a75e7
| Author | SHA1 | Date | |
|---|---|---|---|
|
d0a01a75e7
|
|||
|
53da9ad26d
|
@@ -56,8 +56,8 @@ export async function extractDominantColor(input: Buffer | string): Promise<stri
|
|||||||
const { width, height } = info;
|
const { width, height } = info;
|
||||||
const cx = (width - 1) / 2;
|
const cx = (width - 1) / 2;
|
||||||
const cy = (height - 1) / 2;
|
const cy = (height - 1) / 2;
|
||||||
const sigmaX = 0.3 * width;
|
const sigmaX = 0.15 * width;
|
||||||
const sigmaY = 0.3 * height;
|
const sigmaY = 0.15 * height;
|
||||||
|
|
||||||
let wL = 0, wa = 0, wb = 0, wSum = 0;
|
let wL = 0, wa = 0, wb = 0, wSum = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user