[Webkit-unassigned] [Bug 178039] New: HTMLImageElement.decode() should optimize the decoding for the image intrinsic size
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 6 18:05:01 PDT 2017
https://bugs.webkit.org/show_bug.cgi?id=178039
Bug ID: 178039
Summary: HTMLImageElement.decode() should optimize the decoding
for the image intrinsic size
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Images
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
If the HTMLImageElement has an intrinsic size, the decode() method should use it instead of decoding the image for the native size.
The intrinsic size of an HTMLImageElement can be set to the width and the height attributes of the <img> element. Example is:
<img width="200" height="100>
Or it can be set from the javascript. Example is:
var image = new Image(200, 100);
If the intrinsic size is used, decoding the image and drawing it will be much faster than using the native size. This is because a large image will not be scaled down when it is drawn into a smaller rectangle.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171007/d1906ab4/attachment.html>
More information about the webkit-unassigned
mailing list