Skip to content

Add logo #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Statistical Python logo

## How to generate favicon.ico

1. Convert SVG to png:

```
inkscape --export-type=png statistical-python-logo.svg
```

2. Convert png to multi-resolution icon:

```
convert statistical-python-logo.png -define icon:auto-resize=64,48,32,16 -colors 4 favicon.ico
```

## To simplify SVGs for making icons

See the [SimpleIcons guidelines](https://github.com/simple-icons/simple-icons/blob/develop/CONTRIBUTING.md#adding-or-updating-an-icon):

1. Isolate the icon from any text or extraneous items.
2. Merge any overlapping paths.
3. Compound all paths into one.
4. Change the icon's viewbox/canvas/page size to 24x24.
5. Scale the icon to fit the viewbox, while preserving the icon's original proportions. This means the icon should be touching at least two sides of the viewbox.
6. Center the icon horizontally and vertically.
7. Remove all colors. The icon should be monochromatic.
8. Export the icon as an SVG.

They use [SVGO](https://github.com/svg/svgo) to optimize SVGs. You can also use scour: `pip install scour`.

```
scour --set-precision=2 --strip-xml-prolog --remove-metadata --enable-comment-stripping --enable-viewboxing --indent=none --no-line-breaks --strip-xml-space --shorten-ids --enable-id-stripping statistical-python-logo.svg statistical-python-icon.svg
```
Binary file added images/favicon.ico
Binary file not shown.
186 changes: 186 additions & 0 deletions images/statistical-python-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions myst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ site:
# - title: Packages
# url: /packages
options:
favicon: images/favicon.ico
logo: images/statistical-python-logo.svg
logo_text: Statistical Python
# favicon: favicon.ico
# logo: statistical-python_logo.png