Closed Bug 1763486 Opened 2 years ago Closed 2 years ago

Improve heart animation image asset for dark mode

Categories

(Firefox :: Messaging System, defect, P1)

defect

Tracking

()

VERIFIED FIXED
101 Branch
Iteration:
101.1 - April 4 - April 15
Tracking Status
firefox100 + verified
firefox101 --- verified

People

(Reporter: Mardak, Assigned: Mardak)

References

(Blocks 1 open bug, )

Details

Attachments

(7 files)

[Tracking Requested - why for this release]: Firefox 100 upgrade spotlight image doesn't look good on dark

The asset that landed in bug 1762270 is a 115x94 gif with light theme background mostly replaced with transparent and rendered as 90x73, so there's some artifacts that show up for dark theme. It was originally used in a remote ECO message and resized to 70x57 in bug 1759680.

We could optimize the image with video codecs like vp9 to get both quality and file size, but that would require changing from setting the image as a background-image: url().

For an asset-only change, we can use a different animated image format that supports actual color transparency.

Here's an example with webp adjusting quality and resolution to hit some target file size:

$ ffmpeg -framerate 32.84 -i Heart-Ribbon_%05d.png -c:v libwebp_anim -loop 0 -quality 84 -vf scale=-1:110 -y heart-q84-x110.webp
Attached image heart-q84-x110.webp
Attached image heart-ll-x73.webp
Attached image heart-q45-x146.webp
Attached image heart-q49-x110.webp

Going with this 100KB webp that has good enough 49% quality and high enough 136x110 resolution to look good when resized to 90x73.

Pushed by elee@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/66edc75c637b
Improve heart animation image asset for dark mode r=mviar

Some would say the gif quality is really bad

Type: enhancement → defect

Comment on attachment 9271183 [details]
Bug 1763486 - Improve heart animation image asset for dark mode r?dmose

Beta/Release Uplift Approval Request

  • User impact if declined: Poor quality heart animated gif shown to users upgrading to 100 especially with dark theme, e.g., attachment 9271151 [details]
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce:
  1. activate dark theme
  2. configure to show upgrade spotlight (browser.startup.homepage_override.mstone set to "99", browser.startup.upgradeDialog.version set to 94)
  3. restart Firefox
  • List of other uplifts needed: none
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Image asset change from .gif to .webp
  • String changes made/needed: none
Attachment #9271183 - Flags: approval-mozilla-beta?
Flags: qe-verify+
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch

I‘ve verified this issue using the latest Firefox Nightly 101.0a1 (Build ID: 20220408094506) on Windows 10 x64, macOS 11.6, and Ubuntu 20.04.

  • The heart logo is correctly visible when Dark theme is enabled and the “brand-logo” class has the “chrome://activity-stream/content/data/content/assets/heart.webp” URL.
Status: RESOLVED → VERIFIED

Comment on attachment 9271183 [details]
Bug 1763486 - Improve heart animation image asset for dark mode r?dmose

Approved for 100.0b4

Attachment #9271183 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I‘ve verified this issue using Firefox Beta 100.0b6 (Build ID: 20220414190112) on Windows 10 x64, macOS 11.6, and Ubuntu 20.04.

  • The heart logo is correctly visible when Dark theme is enabled and the “brand-logo” class has the “chrome://activity-stream/content/data/content/assets/heart.webp” URL.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: