Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Takes a pass at compressing the largest
.png
images across the site.As Sarunas pointed out in the forums (https://forums.swift.org/t/redesigned-swift-org-is-now-live/80296/13), the images for the landing page are quite large, where hero-bottom.png clocks in at 2302kb and swoop-0.png is 1611kb.
Run
pngquant
over the largest images in the site with slightly lossy compression to improve the first load experience of the site.pngquant
was run with the following to compress and replace images in place:pngquant --quality=45-60 -f --ext .png **/*.png
While this is a lossy compression, visual inspection in the PR diff view doesn't show major compression artifacts or colour distortion.
Some results:
swoop-0.png
: 1611kb -> 369kb (77% reduction)hero-bottom.png
: 2302kb -> 544kb (76% reduction)PNG retains a broad browser compatibility so it was favoured over using a new more compressible format like
.webp
or.avif