[php-src] PR #14964: Build/Windows: Update the Windows icon as svg and build derivatives from it
| From: | Ayesh | Date: | Mon, 15 Jul 2024 18:52:49 +0000 |
| Subject: | [php-src] PR #14964: Build/Windows: Update the Windows icon as svg and build derivatives from it | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-27262@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14964
Author: Ayesh
This is a follow-up to #12016. The author unfortunately deleted their
php-src fork,
which closed the PR. As mentioned in the previous PR, we have not updated the Windows icon in 21
years, and it look _really_ dated:
---

---
This takes the work from that PR, and the feedback it received to optimize the SVG.
In summary, this PR:
1. Takes the [source SVG from php.net](https://www.php.net/images/logos/php-logo.svg) and adds and
centers it into a 512px viewbox SVG with #777BB3 background. The source "php"
text fill is then changed to #fff.
2. Adds a mkico.sh and an mkico.bat file to generate the .ico
files from the source svg file. The icon file embeds pixel sizes from
16,24,32,48,64,128, and 256 squares. That's why the new ico file is larger than the existing
one. In #12016, it uses magick command, but this one uses the convert
command which should be available in ImageMagick 6 in latest Ubuntu LTS version.
3. The updated ico file is white text on the PHP purple background, and not the old black text with
white outline in the PHP purple background.
I did _not_ copy the SVG files from php/web-php because it has rounded edges, and may
only work out best for Windows app icons.