| OLD | NEW |
| 1 PNG Images | 1 PNG Images |
| 2 ========== | 2 ========== |
| 3 | 3 |
| 4 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: |
| 5 tools/resources/optimize-png-files.sh -o2 new_pngs_dir | 5 tools/resources/optimize-png-files.sh -o2 new_pngs_dir |
| 6 | 6 |
| 7 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: |
| 8 mkdir crushed | 8 mkdir crushed |
| 9 pngcrush -d crushed -brute -reduce -rem alla new/*.png | 9 pngcrush -d crushed -brute -reduce -rem alla new/*.png |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 2. Combine the images into an ICO file. With ImageMagick: | 34 2. Combine the images into an ICO file. With ImageMagick: |
| 35 | 35 |
| 36 convert FILENAME-256.png FILENAME-{48,32,16}{-indexed,}.png FILENAME.ico | 36 convert FILENAME-256.png FILENAME-{48,32,16}{-indexed,}.png FILENAME.ico |
| 37 | 37 |
| 38 3. Unfortunately, the 8-bit images have been converted back into 32-bit images. | 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 | 39 Open the icon in GIMP and re-export it. This will also convert the large |
| 40 256 image into a compressed PNG. | 40 256 image into a compressed PNG. |
| 41 4. Run src/tools/resources/optimize-ico-files.py on the resulting .ico file. | 41 4. Run src/tools/resources/optimize-ico-files.py on the resulting .ico file. |
| 42 | 42 |
| 43 You can also run src/tools/resources/optimize-ico-files.py on existing .ico | 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 and fix up any broken image | 44 files. This will convert BMPs to PNGs and run a basic PNG optimization pass, as |
| 45 masks (http://crbug.com/534679). | 45 well as fix up any broken image masks (http://crbug.com/534679). |
| OLD | NEW |