Skip to content
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

enhancement: add transparent background to sponsor images #455

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

christian-heusel
Copy link
Member

Currently the images sometimes were not using transparent background or were a little pixelated, which this PR tries to fix.

Old:
image

New:
image

Copy link

@lcarilla lcarilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)
really looks nicer this way

@@ -50,7 +50,7 @@ <h3>Commercial sponsors and contributions</h3>
of git commits and software packages, GnuPG keys, and SSH accounts.</p>

<a href="https://nitrokey.com/" title="Nitrokey">
<img src="{% static "nitrokey_logo.png" %}"
<img width="240" src="{% static "nitrokey_logo.png" %}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not resize the original image back to 420px?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of the white boarder that it carries 😅

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean back to 240px.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logo is only shown here, it was 240px width, so we can just retain that:

magick convert -resize 240 nitrokey_logo.png nitrokey_logo_res.png

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also oxipng all the images so they are about 10-20% smaller.

@@ -50,7 +50,7 @@ <h3>Commercial sponsors and contributions</h3>
of git commits and software packages, GnuPG keys, and SSH accounts.</p>

<a href="https://nitrokey.com/" title="Nitrokey">
<img src="{% static "nitrokey_logo.png" %}"
<img width="240" src="{% static "nitrokey_logo.png" %}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logo is only shown here, it was 240px width, so we can just retain that:

magick convert -resize 240 nitrokey_logo.png nitrokey_logo_res.png

Copy link
Member

@jelly jelly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oxipng'd the icons, resized the nitrokey logo. All good now.

@jelly jelly merged commit fc191bb into archlinux:master Sep 14, 2024
2 checks passed
@jelly
Copy link
Member

jelly commented Sep 14, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants