Page MenuHomePhabricator

Echo email icons are blurry
Closed, ResolvedPublic

Assigned To
Authored By
Esanders
Feb 26 2021, 11:21 PM
Referenced Files
F35023625: image.png
Mar 25 2022, 1:50 PM
F35023623: image.png
Mar 25 2022, 1:50 PM
F34124349: image.png
Feb 26 2021, 11:21 PM
F34124353: image.png
Feb 26 2021, 11:21 PM

Description

Echo renders OOUI icons at 30x30, which is 1.5 scale. This is usually fine as the icons are SVGs, but it email it deliberately uses rasterized versions (presumably for better email client support), which results in blurriness.

The icons should be scaled to 30x30 before rasterizing.

Current:

image.png (415×118 px, 8 KB)

Expected:

image.png (425×125 px, 8 KB)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 773773 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/Echo@master] Set all icons used in EchoNotificationIcons to 30x30

https://gerrit.wikimedia.org/r/773773

It would be nicer if ResourceLoaderImageModule could rasterize to an arbitrary size, but this is an easier fix for now.

Before patch:

image.png (624×224 px, 17 KB)

After patch:

image.png (623×186 px, 13 KB)

Tested by enabling the "Inbox" extension (which can be done on Patch demo)

Where are the rasterised images stored? How are they changed? Will this Just Work™ and trigger new renders, will they start working after the caches expire in a year, or will they randomly re-render at some indeterminate point when Varnish evicts them?

They're fetched from ResourceLoaderImageModule (via load.php) so I imagine the longest they will be cached for is a week?

They're fetched from ResourceLoaderImageModule (via load.php) so I imagine the longest they will be cached for is a week?

Oh, right, yeah, that's good enough.

Change 773773 merged by jenkins-bot:

[mediawiki/extensions/Echo@master] Set all icons used in EchoNotificationIcons to 30x30

https://gerrit.wikimedia.org/r/773773

Aklapper assigned this task to Esanders.

Merged two years ago