Bug 259960
| Summary: | [Cocoa] Super gigantic images should not be decoded with their natural sizes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
| Status: | NEW | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Said Abou-Hallawa
Test case: https://upload.wikimedia.org/wikipedia/commons/e/ea/Van_Gogh_-_Starry_Night_-_Google_Art_Project.jpg
Image sub-sampling should be enabled for macOS so the number of the decoded pixels is scaled down by the ratio between destinationSize and sourceSize.
For non-scaled display, sub-images should be used to display the image on different tiles. The size of the sub-image will be the mapping of the destination rectangle clipped by the GraphicsContext.bounds() in the image rectangle.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Said Abou-Hallawa
rdar://113305719
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/16505