cheeaun / phanpy

A minimalistic opinionated Mastodon web client
https://phanpy.social
MIT License
1.03k stars 97 forks source link

inconsistent rendering of profile image underglow #484

Open wakest opened 5 months ago

wakest commented 5 months ago

here is how https://degrowth.social/@yala's profile looks (they seem to have a profile picture of a single pixel png:

image

heres what mine looks like which is also a transparent png (I think it looks good)

image

heres @cheeaun's which has the cool underglow from the header image

image

and here is one that has barely no underglow https://mastodon.social/@mntmn

image
cheeaun commented 5 months ago

The avatar "glow" colors are based on (lower corners of) the header image. If extracted colors from header image are dark, they'll be dark "glows", which will look more like drop shadows, and… disappears on darker backgrounds 😆

Here's how mntmn's profile look like on light mode: Screenshot 2024-04-12 at 9 35 53 AM

Obviously, more advanced color manipulation work is needed, for all the various header + avatar image combos + dark/light mode.