ui: Add initial set of new default user images

Desktop / Chromium - David Reveman [chromium.org] - 28 July 2017 19:35 EDT

This adds a new set of default user images and deprecates the old images. It also adds support for APNG images to data packs by updating the chrome_scaled_image.py script to include APNG related chunks.

New user images are 96x96dp as that is currently the largest size that they are expected to be used at. Note: preview in profile picture settings page is currently showing these at a larger size but this will be adjusted by a follow up CL.

This increases the Chrome OS resource storage requirements by approximately 7.5MB. The size of old images will be reduced by a follow up CL to bring the storage requirements back down below 8MB.

Before:

$ du -sh --total ui/chromeos/resources/*/default_user_images 1.9M ui/chromeos/resources/default_100_percent/default_user_images 5.6M ui/chromeos/resources/default_200_percent/default_user_images 7.4M total

After:

$ du -sh --total ui/chromeos/resources/*/default_user_images 3.5M ui/chromeos/resources/default_100_percent/default_user_images 12M ui/chromeos/resources/default_200_percent/default_user_images 15M total

BUG=721647 TEST=Settings->People->"Change picture" shows new image set

Change-Id: I8daeed689f73f7fca9db9600f8a03e7772cf5cfd Reviewed-on: https://chromium-review.googlesource.com/575573

c0c3014 ui: Add initial set of new default user images.
.../default_user_image/default_user_images.cc | 32 +++++++++++++++-
tools/grit/grit/gather/chrome_scaled_image.py | 2 +-
.../origami/avatar_butterflies.png | Bin 0 -> 61048 bytes
.../default_user_images/origami/avatar_cat.png | Bin 0 -> 32356 bytes
.../default_user_images/origami/avatar_corgi.png | Bin 0 -> 133045 bytes
.../default_user_images/origami/avatar_dragon.png | Bin 0 -> 220388 bytes
.../origami/avatar_elephant.png | Bin 0 -> 113051 bytes
.../default_user_images/origami/avatar_fox.png | Bin 0 -> 147404 bytes
.../default_user_images/origami/avatar_monkey.png | Bin 0 -> 144417 bytes
.../default_user_images/origami/avatar_panda.png | Bin 0 -> 178560 bytes
.../default_user_images/origami/avatar_penguin.png | Bin 0 -> 110923 bytes
.../origami/avatar_pinkbutterfly.png | Bin 0 -> 69766 bytes
.../default_user_images/origami/avatar_rabbit.png | Bin 0 -> 120681 bytes
.../origami/avatar_redbutterfly.png | Bin 0 -> 34797 bytes
.../default_user_images/origami/avatar_snail.png | Bin 0 -> 176143 bytes
.../default_user_images/origami/avatar_unicorn.png | Bin 0 -> 133150 bytes
.../origami/avatar_butterflies.png | Bin 0 -> 195289 bytes
.../default_user_images/origami/avatar_cat.png | Bin 0 -> 95923 bytes
.../default_user_images/origami/avatar_corgi.png | Bin 0 -> 437131 bytes
.../default_user_images/origami/avatar_dragon.png | Bin 0 -> 781014 bytes
.../origami/avatar_elephant.png | Bin 0 -> 397171 bytes
.../default_user_images/origami/avatar_fox.png | Bin 0 -> 493568 bytes
.../default_user_images/origami/avatar_monkey.png | Bin 0 -> 481721 bytes
.../default_user_images/origami/avatar_panda.png | Bin 0 -> 593291 bytes
.../default_user_images/origami/avatar_penguin.png | Bin 0 -> 393490 bytes
.../origami/avatar_pinkbutterfly.png | Bin 0 -> 261203 bytes
.../default_user_images/origami/avatar_rabbit.png | Bin 0 -> 455949 bytes
.../origami/avatar_redbutterfly.png | Bin 0 -> 126866 bytes
.../default_user_images/origami/avatar_snail.png | Bin 0 -> 614453 bytes
.../default_user_images/origami/avatar_unicorn.png | Bin 0 -> 462745 bytes
ui/chromeos/resources/ui_chromeos_resources.grd | 16 +++++++-
ui/chromeos/ui_chromeos_strings.grd | 42 +++++++++++++++++++++
32 files changed, 89 insertions(+), 3 deletions(-)

Upstream: git.chromium.org


  • Share