Fix avgColor format

This commit is contained in:
syuilo 2019-04-07 22:57:30 +09:00
parent f0a29721c9
commit cad49892d3
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -356,7 +356,7 @@ export default async function(
logger.debug(`average color is calculated: ${r}, ${g}, ${b}`);
const value = info.isOpaque ? [r, g, b] : [r, g, b, 255];
const value = info.isOpaque ? `rgb(${r},${g},${b})` : `rgba(${r},${g},${b},255)`;
properties['avgColor'] = value;
} catch (e) { }