Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 1372843002: optimize-ico-files: Automatically rebuild the AND mask of 32-bit images. (Closed)

Created:
5 years, 2 months ago by Matt Giuca
Modified:
5 years, 2 months ago
Reviewers:
oshima
CC:
chromium-reviews, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

optimize-ico-files: Automatically rebuild the AND mask of 32-bit images. Due to a bug in Windows, icons do not display properly in some contexts if the AND mask has transparency on a pixel that is partially (or fully) opaque (see crbug.com/526622, https://bugzilla.gnome.org/show_bug.cgi?id=755200). GIMP <=2.8.14 (and possibly other icon tools) generates icons that do not satisfy this property. This is a work-around for that issue. The optimize-ico-files script (which is supposed to be run on all .ico files in Chrome, according to chrome/app/theme/README) now strips out the AND mask for any 32-bit image and rebuilds it from the alpha channel. This ensures that it displays properly on Windows regardless of which tool created it. BUG=534679 Committed: https://crrev.com/196c33780897dbb87d9fb2c8cd0449096269103c Cr-Commit-Position: refs/heads/master@{#351683}

Patch Set 1 #

Patch Set 2 : Remove obsolete comment. #

Total comments: 2

Patch Set 3 : Added link to bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -15 lines) Patch
M chrome/app/theme/README View 1 2 2 chunks +2 lines, -6 lines 0 comments Download
M tools/resources/optimize-ico-files.py View 1 4 chunks +86 lines, -9 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Matt Giuca
5 years, 2 months ago (2015-09-28 02:54:26 UTC) #2
oshima
lgtm https://codereview.chromium.org/1372843002/diff/20001/chrome/app/theme/README File chrome/app/theme/README (right): https://codereview.chromium.org/1372843002/diff/20001/chrome/app/theme/README#newcode45 chrome/app/theme/README:45: masks. nit: a link to the bug?
5 years, 2 months ago (2015-09-30 19:26:44 UTC) #3
Matt Giuca
https://chromiumcodereview.appspot.com/1372843002/diff/20001/chrome/app/theme/README File chrome/app/theme/README (right): https://chromiumcodereview.appspot.com/1372843002/diff/20001/chrome/app/theme/README#newcode45 chrome/app/theme/README:45: masks. On 2015/09/30 19:26:43, oshima wrote: > nit: a ...
5 years, 2 months ago (2015-10-01 00:26:08 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1372843002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1372843002/40001
5 years, 2 months ago (2015-10-01 00:26:36 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-01 00:40:38 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-10-01 00:41:27 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/196c33780897dbb87d9fb2c8cd0449096269103c
Cr-Commit-Position: refs/heads/master@{#351683}

Powered by Google App Engine
This is Rietveld 408576698