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

Optimise images #37

Merged
merged 6 commits into from
Jun 21, 2023
Merged

Optimise images #37

merged 6 commits into from
Jun 21, 2023

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Jun 21, 2023

Resize the Pillow logo in the top bar from 1280x640 to the displayed 120x60, and 224K to 6.3K, and specify both width and height in HTML for faster loading.

Show the main logo at full size (height 250 not 248) and specify width (248) for faster rendering.

Remove unused images.

Compress other images using optipng.

I didn't resize the Tidelift logo 1494x220 to displayed 600x88 because it actually increased the file size. I didn't spend much time trying to optimise it beyond optipng, it's only ~4K. But I did add the image height and alt text.


Addresses these findings from https://pagespeed.web.dev/analysis/https-python-pillow-org/3h4xjteulj?form_factor=mobile

image

image

image

@hugovk hugovk mentioned this pull request Jun 21, 2023
@aclark4life aclark4life merged commit 3dd526d into python-pillow:main Jun 21, 2023
@aclark4life
Copy link
Member

GO GO GO, thanks @hugovk !

@hugovk hugovk deleted the optimise-images branch June 21, 2023 17:28
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.

2 participants