Open retrocausal opened 6 years ago
Error: Unable to parse color from object: {"model":"rgb","color":[255,255,255],"valpha":1}
Unable to parse color from object: {"model":"rgb","color":[255,255,255],"valpha":1}
What does the config specify:
const bgcolor = color({ r: 255, g: 255, b: 255, alpha: 0 }); //Somewhere in the pipeline //common config parameters { min: true, flatten: true, background: bgcolor }
The above error, is regardless of specifying the alpha channel while defining a color. I am unsure if this is because of sharp though
alpha
sharp
Oh I figured, I should not be using color, but only specify the color model
color
doing
{ background:{r:255,b:255,g:255,alpha:0} }
doesn't throw an error anymore. However, the alpha just doesn't work.
Error:
Unable to parse color from object: {"model":"rgb","color":[255,255,255],"valpha":1}
What does the config specify:
The above error, is regardless of specifying the
alpha
channel while defining a color. I am unsure if this is because ofsharp
though