0

[ios] Swap in smaller assets for map_blur.

Encoding these images as jpg reduces file size with minimal effect on
quality, since these are banner images with a visible blur effect.

Bug: 332929378
Change-Id: Idf3ef34cdf64971d309079cc961db34f2987fe30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5506354
Reviewed-by: Olivier Robin <olivierrobin@chromium.org>
Commit-Queue: Rohit Rao <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1295377}
This commit is contained in:
Rohit Rao
2024-05-02 11:33:29 +00:00
committed by Chromium LUCI CQ
parent a5a0fca082
commit 48a945323a
16 changed files with 24 additions and 16 deletions

@ -13,7 +13,6 @@ source_set("mini_map") {
deps = [
":mini_map_handler",
":mini_map_ui",
"resources:map_blur",
"//components/prefs",
"//ios/chrome/app/strings",
"//ios/chrome/browser/shared/coordinator/chrome_coordinator",
@ -22,6 +21,7 @@ source_set("mini_map") {
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/public/commands",
"//ios/chrome/browser/shared/ui/symbols",
"//ios/chrome/browser/ui/mini_map/resources",
"//ios/chrome/browser/web/model/annotations",
"//ios/chrome/common:string_util",
"//ios/chrome/common/ui/colors",

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -15,7 +15,7 @@
"scale" : "1x"
},
{
"filename" : "map_blur_light_iphone@2x.png",
"filename" : "map_blur_light_iphone@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
@ -26,12 +26,12 @@
"value" : "dark"
}
],
"filename" : "map_blur_dark_iphone@2x.png",
"filename" : "map_blur_dark_iphone@2x.jpg",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "map_blur_light_iphone@3x.png",
"filename" : "map_blur_light_iphone@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
},
@ -42,7 +42,7 @@
"value" : "dark"
}
],
"filename" : "map_blur_dark_iphone@3x.png",
"filename" : "map_blur_dark_iphone@3x.jpg",
"idiom" : "universal",
"scale" : "3x"
},
@ -61,7 +61,7 @@
"scale" : "1x"
},
{
"filename" : "map_blur_light_ipad@2x.png",
"filename" : "map_blur_light_ipad@2x.jpg",
"idiom" : "ipad",
"scale" : "2x"
},
@ -72,7 +72,7 @@
"value" : "dark"
}
],
"filename" : "map_blur_dark_ipad@2x.png",
"filename" : "map_blur_dark_ipad@2x.jpg",
"idiom" : "ipad",
"scale" : "2x"
}

Binary file not shown.

After

(image error) Size: 107 KiB

Binary file not shown.

After

(image error) Size: 126 KiB

Binary file not shown.

After

(image error) Size: 259 KiB

Binary file not shown.

After

(image error) Size: 100 KiB

Binary file not shown.

After

(image error) Size: 113 KiB

Binary file not shown.

After

(image error) Size: 213 KiB

@ -2,16 +2,18 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ios/asset_catalog.gni")
import("//build/config/ios/rules.gni")
imageset("map_blur") {
bundle_data_xcassets("resources") {
catalog = "Assets.xcassets"
sources = [
"map_blur.imageset/Contents.json",
"map_blur.imageset/map_blur_dark_ipad@2x.png",
"map_blur.imageset/map_blur_dark_iphone@2x.png",
"map_blur.imageset/map_blur_dark_iphone@3x.png",
"map_blur.imageset/map_blur_light_ipad@2x.png",
"map_blur.imageset/map_blur_light_iphone@2x.png",
"map_blur.imageset/map_blur_light_iphone@3x.png",
"Assets.xcassets/Contents.json",
"Assets.xcassets/map_blur.imageset/Contents.json",
"Assets.xcassets/map_blur.imageset/map_blur_dark_ipad@2x.jpg",
"Assets.xcassets/map_blur.imageset/map_blur_dark_iphone@2x.jpg",
"Assets.xcassets/map_blur.imageset/map_blur_dark_iphone@3x.jpg",
"Assets.xcassets/map_blur.imageset/map_blur_light_ipad@2x.jpg",
"Assets.xcassets/map_blur.imageset/map_blur_light_iphone@2x.jpg",
"Assets.xcassets/map_blur.imageset/map_blur_light_iphone@3x.jpg",
]
}

Binary file not shown.

Before

(image error) Size: 355 KiB

Binary file not shown.

Before

(image error) Size: 430 KiB

Binary file not shown.

Before

(image error) Size: 904 KiB

Binary file not shown.

Before

(image error) Size: 382 KiB

Binary file not shown.

Before

(image error) Size: 437 KiB

Binary file not shown.

Before

(image error) Size: 916 KiB