Skip to content

Commit 7e91935

Browse files
authored
Compress large PNGs (#1057)
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` Some results: `swoop-0.png`: 1611kb -> 369kb (77% reduction) `hero-bottom.png`: 2302kb -> 544kb (76% reduction) PNG retains a broad browser compabitility so it was favoured over using a new more compressable format like `.webp` or `.avif`
1 parent f12802e commit 7e91935

File tree

62 files changed

+0
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+0
-0
lines changed
-740 KB
-635 KB
-326 KB
-407 KB
-447 KB
-443 KB
-448 KB
-536 KB
-443 KB
-104 KB

0 commit comments

Comments
 (0)