tree: 622959dce03e9b33b98ab1536d742278ccdf5876 [path history] [tgz]
  1. borealis/
  2. bruschetta/
  3. chromium/
  4. crostini/
  5. default_100_percent/
  6. default_200_percent/
  7. mac/
  8. plugin_vm/
  9. BUILD.gn
  10. cast_icon.svg
  11. chrome_unscaled_resources.grd
  12. OWNERS
  13. PRESUBMIT.py
  14. README.md
  15. theme_resources.grd
  16. vista_frame_throbber_01.ico
  17. vista_frame_throbber_02.ico
  18. vista_frame_throbber_03.ico
  19. vista_frame_throbber_04.ico
  20. vista_frame_throbber_05.ico
  21. vista_frame_throbber_06.ico
  22. vista_frame_throbber_07.ico
  23. vista_frame_throbber_08.ico
  24. vista_frame_throbber_09.ico
  25. vista_frame_throbber_10.ico
  26. vista_frame_throbber_11.ico
  27. vista_frame_throbber_12.ico
  28. vista_frame_throbber_13.ico
  29. vista_frame_throbber_14.ico
  30. vista_frame_throbber_15.ico
  31. vista_frame_throbber_16.ico
  32. vista_frame_throbber_17.ico
  33. vista_frame_throbber_18.ico
  34. vista_frame_throbber_19.ico
  35. vista_frame_throbber_20.ico
  36. vista_frame_throbber_21.ico
  37. vista_frame_throbber_22.ico
  38. vista_frame_throbber_23.ico
  39. vista_frame_throbber_24.ico
chrome/app/theme/README.md

Branded and Trademarked Assets

If the resource that you want to check in is product-branded and/or trademarked, please read the docs on Google Chrome branding to determine the correct steps to take.

PNG Images

Please run src/tools/resources/optimize-png-files.sh on all new icons. For example:

tools/resources/optimize-png-files.sh -o2 new_pngs_dir

If this script does not work for some reason, at least pngcrush the files:

  mkdir crushed
  pngcrush -d crushed -brute -reduce -rem alla new/*.png

ICO Images

Windows ICO icons should be in the following format:

  • A square image of each size: 256, 48, 32, 16.
  • The 256 image should be in PNG format, and optimized.
  • The smaller images should be in BMP (uncompressed) format.
  • Each of the smaller images (48 and less) should have an 8-bit and 32-bit version.
  • The 256 image should not be last (there is a bug in Gnome on Linux where icons look corrupted if the PNG image is last).

If you are creating an ICO from a set of PNGs of different sizes, the following process (using ImageMagick and GIMP) satisfies the above conditions:

  1. Convert each of the smaller images to 8-bit. With ImageMagick:

    for f in FILENAME-??.png; \
        do convert $f -dither None -colors 256 \
            png8:`basename $f .png`-indexed.png; \
    done
    
  2. Combine the images into an ICO file. With ImageMagick:

    convert FILENAME-256.png FILENAME-{48,32,16}{-indexed,}.png FILENAME.ico
    
  3. Unfortunately, the 8-bit images have been converted back into 32-bit images. Open the icon in GIMP and re-export it. This will also convert the large 256 image into a compressed PNG.

  4. Run src/tools/resources/optimize-ico-files.py on the resulting .ico file.

You can also run src/tools/resources/optimize-ico-files.py on existing .ico files. This will convert BMPs to PNGs and run a basic PNG optimization pass, as well as fix up any broken image masks (http://crbug.com/534679).