Open
Bug 2035971
Opened 7 days ago
Updated 7 days ago
RemoteImageProtocolHandler needs an option to preserve intrinsic aspect ratio
Categories
(Core :: Graphics, enhancement)
Core
Graphics
Tracking
()
ASSIGNED
People
(Reporter: adw, Assigned: adw)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Desktop Firefox's urlbar recently started using the moz-remote-image protocol to load images (bug 2012436). RemoteImageProtocolHandler doesn't attempt to preserve intrinsic aspect ratios and instead uses the size specified in the URL, which distorts images that aren't square. I have a wallpaper fix in bug 2035353 that I'd like to uplift, but ideally RemoteImageProtocolHandler would provide a way for consumers to request that the aspect ratio be preserved.
| Assignee | ||
Comment 1•7 days ago
|
||
This adds a boolean preserveAspectRatio param to the protocol. When true, the
minimum requested dimension becomes the minimum dimension in the final image
such that its intrinsic aspect ratio is preserved.
Depends on D297215
Updated•7 days ago
|
Assignee: nobody → adw
Status: NEW → ASSIGNED
You need to log in
before you can comment on or make changes to this bug.
Description
•