New issue
Advanced search Search tips

Issue 837348 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Feature

Blocked on:
issue 837344

Blocking:
issue 837346



Sign in to add a comment

Implementing optimized image policy "image-compression" behind a flag.

Project Member Reported by loonyb...@chromium.org, Apr 26 2018

Issue description

As part of an effort to implement feature policies to improve performance issues with images ( Issue 837346 ), we would like to experiment with "image-compression" policy.
 
This policy deals with the two problems below:
- Images include too much metadata.
- Large images served on the web that require a big compression ratio.

When image file size is too big compared to its container size, image will be rendered with inverted color, when "image-compression" is disabled by feature policy.
 
Blockedon: 837344
Blocking: 837346
Status: Started (was: Assigned)
Project Member

Comment 3 by bugdroid1@chromium.org, May 3 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/54aa2e86754b30b0681f4ca4f84f709f28a6851f

commit 54aa2e86754b30b0681f4ca4f84f709f28a6851f
Author: Ian Clelland <iclelland@chromium.org>
Date: Thu May 03 17:42:31 2018

Add legacy-image-formats and image-compression policies

These policies are intended to allow developers to control which image
formats are supported on their pages (and on the pages they embed,) and
to enforce that images used are well compressed and not full of
metadata which does not contribute to the displayed image.

Explainers for these features can be found at
https://github.com/WICG/feature-policy/blob/gh-pages/policies/optimized-images.md

Bug:  837348 ,  837350 
Change-Id: Ie92517291a453286ca0d745f8dc497f040c06592
Reviewed-on: https://chromium-review.googlesource.com/1033726
Reviewed-by: Nate Chapin <japhet@chromium.org>
Reviewed-by: Jeremy Roman <jbroman@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Commit-Queue: Ian Clelland <iclelland@chromium.org>
Cr-Commit-Position: refs/heads/master@{#555795}
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-image-compression-expected.png
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-image-compression-expected.txt
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-image-compression.html
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-legacy-formats-expected.png
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-legacy-formats-expected.txt
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/feature-policy-legacy-formats.html
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/resources/Fisher-large.jpg
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/resources/Fisher-small.jpg
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/resources/Fisher.bmp
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/resources/frame-with-compression-test-images.html
[add] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/WebKit/LayoutTests/http/tests/images/resources/frame-with-legacy-image.html
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/common/feature_policy/feature_policy.cc
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/public/mojom/feature_policy/feature_policy.mojom
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/core/html/html_image_loader.cc
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/core/loader/resource/image_resource_content.cc
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/core/loader/resource/image_resource_content.h
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/platform/feature_policy/feature_policy.cc
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/platform/network/mime/mime_type_registry.cc
[modify] https://crrev.com/54aa2e86754b30b0681f4ca4f84f709f28a6851f/third_party/blink/renderer/platform/network/mime/mime_type_registry.h

Labels: -Type-Bug Type-Feature
Status: Fixed (was: Started)

Sign in to add a comment