ui-avatars icon indicating copy to clipboard operation
ui-avatars copied to clipboard

Feature: Support Alpha channel in colours

Open ChiefWiggum opened this issue 5 years ago • 2 comments

Hi there,

it would be great to have the option to pass in a background or a text colour that supports alpha channels with the RGBA format #RRGGBBAA or #RGBA, e.g.

https://ui-avatars.com/api/?background=a0a0a00f

The nice thing about beeing able to set an alpha channel, is that it can also be set to a semi transparent level, not just fully transparent or fully visible.

Btw: The url with the 8 digit colour code currently results in a broken 0x0 pixel image.

Cheers

ChiefWiggum avatar May 21 '19 09:05 ChiefWiggum

I've realised, that you're using Intervention/image and that they currently don't support an alpha channel via hex and therefore opened an issue there as well.

ChiefWiggum avatar May 21 '19 09:05 ChiefWiggum

Very good idea! I will look into a solution — definitively something I'd want it to support

LasseRafn avatar Mar 05 '20 15:03 LasseRafn