mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-14 14:15:43 +01:00
Fix avgColor format
This commit is contained in:
parent
f0a29721c9
commit
cad49892d3
1 changed files with 1 additions and 1 deletions
|
@ -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) { }
|
||||
|
|
Loading…
Reference in a new issue