mail icon indicating copy to clipboard operation
mail copied to clipboard

Small favicons are blurry

Open Jerome-Herbinet opened this issue 1 year ago • 12 comments

Steps to reproduce

I'm a bit afraid of changing things in nextcloud-vue (so I only open this issue for the moment) but if you check my test bellow, the CSS changes can fix avatar when they are too small (avoids blurry effect) :

CSS changes

Capture d’écran du 2024-08-20 14-20-16

Before

Capture d’écran du 2024-08-20 13-59-31

After

Capture d’écran du 2024-08-20 14-00-20

Expected behavior

Read above

Actual behavior

Read above

Mail app version

3.7.7

Mailserver or service

No response

Operating system

CentOS

PHP engine version

PHP 8.2

Web server

Nginx

Database

MariaDB

Additional info

No response

Jerome-Herbinet avatar Aug 20 '24 12:08 Jerome-Herbinet

@nextcloud/designers

Jerome-Herbinet avatar Aug 20 '24 12:08 Jerome-Herbinet

Those are favicons. The favicon probably only has a low res icon.

ChristophWurst avatar Aug 20 '24 12:08 ChristophWurst

Those are favicons. The favicon probably only has a low res icon.

@ChristophWurst you're right, we're talking about favicons, and it's not always available at all resolutions, including the highest ones. Do you confirm that my suggestion is relevant ?

Jerome-Herbinet avatar Aug 20 '24 13:08 Jerome-Herbinet

I can confirm that low res favicons do not look great but I'll leave the decision on a workaround to designers

ChristophWurst avatar Aug 20 '24 13:08 ChristophWurst

@Jerome-Herbinet could you try with a few other favicons, including those which have higher resolution? A thing I would be worried about is that it will result in small squares inside the circle, which looks off.

In your example it looks good cause it’s a favicon with white background in light mode, but this would look differently otherwise. So I am inclined to reject this and suggest to improve the favicon instead?

jancborchardt avatar Aug 20 '24 21:08 jancborchardt

Otherwise, if we know that a favicon is low-res, we could have special handling for it. But only for the low-res ones, cause high-res ones pose no issue.

jancborchardt avatar Aug 20 '24 21:08 jancborchardt

@Jerome-Herbinet could you try with a few other favicons, including those which have higher resolution? A thing I would be worried about is that it will result in small squares inside the circle, which looks off.

In your example it looks good cause it’s a favicon with white background in light mode, but this would look differently otherwise. So I am inclined to reject this and suggest to improve the favicon instead?

@jancborchardt : test with a bigger square one

2024-08-21_08-58

Jerome-Herbinet avatar Aug 21 '24 06:08 Jerome-Herbinet

Right, so your solution would basically ensure that lower-res images don’t get upscaled – that is good.

As said one thing I am worried about is it looking weird with low-res favicons of different colors, as it would result in small squares among the proper circles (or rounded squares, depending on how the favicon looks). So it would be good to see some examples with that as well. Also for example in your screenshot, the Nextcloud logo in the circle is smaller than the personal picture?

jancborchardt avatar Aug 21 '24 08:08 jancborchardt

Right, so your solution would basically ensure that lower-res images don’t get upscaled – that is good.

As said one thing I am worried about is it looking weird with low-res favicons of different colors, as it would result in small squares among the proper circles (or rounded squares, depending on how the favicon looks). So it would be good to see some examples with that as well. Also for example in your screenshot, the Nextcloud logo in the circle is smaller than the personal picture?

@jancborchardt : test with a smaller square one

2024-08-21_11-29

Jerome-Herbinet avatar Aug 21 '24 09:08 Jerome-Herbinet

@Jerome-Herbinet the examples are always very isolated. :) It’s best to show a whole list of mails with various avatars and favicons, so it can be judged whether it works fine in practice.

I do like that regardless of size they get rounded, I’m just not sure it will look nice with various circle sizes in the list. But yeah, the question is if the varying circle sizes are nicer than the pixelation.

jancborchardt avatar Aug 21 '24 09:08 jancborchardt

@Jerome-Herbinet the examples are always very isolated. :) It’s best to show a whole list of mails with various avatars and favicons, so it can be judged whether it works fine in practice.

I do like that regardless of size they get rounded, I’m just not sure it will look nice with various circle sizes in the list. But yeah, the question is if the varying circle sizes are nicer than the pixelation.

@jancborchardt this is just my personal preference, but I prefer a smaller, sharper avatar to a larger, blurred one. This is just my personal preference, but I prefer a smaller, sharper avatar to a larger, blurred one (which looks more like a bug, IMO). Maybe you should launch a poll during an upcoming Talk meeting with your Nextcloud colleagues 🙂

Jerome-Herbinet avatar Aug 28 '24 12:08 Jerome-Herbinet

@Jerome-Herbinet I'll likely be fine with your solution, and I prefer if design is not decided by polls (especially small things like this). I'm just asking for the screenshot to show further different examples in context, so we can see how it looks in practice. :)

jancborchardt avatar Aug 28 '24 14:08 jancborchardt

Dear @Jerome-Herbinet @jancborchardt, how can we proceed with this? Could one of you create example screenshots to find consent? Thank you

ChristophWurst avatar Nov 13 '24 14:11 ChristophWurst

To not hold it up further, I'd also be happy to +1 a pull request that implements @Jerome-Herbinet's changes as he wrote. :) as said it should be fine.

jancborchardt avatar Nov 13 '24 21:11 jancborchardt