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

Side by Side Diff: chrome/app/theme/README

Issue 130583003: Added script optimize-ico-files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2-space indents and TitleCase. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/resources/optimize-ico-files.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PNG Images
2 ==========
3
1 Please run src/tools/resources/optimize-png-files.sh on all new icons. For examp le: 4 Please run src/tools/resources/optimize-png-files.sh on all new icons. For examp le:
2 tools/resources/optimize-png-files.sh -o2 new_pngs_dir 5 tools/resources/optimize-png-files.sh -o2 new_pngs_dir
3 6
4 If this script does not work for some reason, at least pngcrush the files: 7 If this script does not work for some reason, at least pngcrush the files:
5 mkdir crushed 8 mkdir crushed
6 pngcrush -d crushed -brute -reduce -rem alla new/*.png 9 pngcrush -d crushed -brute -reduce -rem alla new/*.png
10
11 ICO Images
12 ==========
13
14 Windows ICO icons should be in the following format:
15
16 * A square image of each size: 256, 48, 32, 16.
17 * The 256 image should be in PNG format, and optimized.
18 * The smaller images should be in BMP (uncompressed) format.
19 * Each of the smaller images (48 and less) should have an 8-bit and 32-bit
20 version.
21 * The 256 image should not be last (there is a bug in Gnome on Linux where icons
22 look corrupted if the PNG image is last).
23
24 If you are creating an ICO from a set of PNGs of different sizes, the following
25 process (using ImageMagick and GIMP) satisfies the above conditions:
26
27 1. Convert each of the smaller images to 8-bit. With ImageMagick:
28
29 for f in FILENAME-??.png; \
30 do convert $f -dither None -colors 256 \
31 png8:`basename $f .png`-indexed.png; \
32 done
33
34 2. Combine the images into an ICO file. With ImageMagick:
35
36 convert FILENAME-256.png FILENAME-{48,32,16}{-indexed,}.png FILENAME.ico
37
38 3. Unfortunately, the 8-bit images have been converted back into 32-bit images.
39 Open the icon in GIMP and re-export it. This will also convert the large
40 256 image into a compressed PNG.
41 4. Run src/tools/resources/optimize-ico-files.py on the resulting .ico file.
42
43 You can also run src/tools/resources/optimize-ico-files.py on existing .ico
44 files. This will run a basic PNG optimization pass.
OLDNEW
« no previous file with comments | « no previous file | tools/resources/optimize-ico-files.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698