aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJieiku2023-08-15 21:10:25 -0700
committerJieiku2023-08-15 21:10:25 -0700
commit0983915e23793c28dd0bee149fd2ec05a7e96a94 (patch)
tree0f7c8c7c97e33e4a0e4c1c2e1150f94fdc2ba022 /README.md
parent729f7cda12340aabce5d0faab8d306b5e0d59568 (diff)
downloadabridge-0983915e23793c28dd0bee149fd2ec05a7e96a94.tar.gz
abridge-0983915e23793c28dd0bee149fd2ec05a7e96a94.tar.bz2
abridge-0983915e23793c28dd0bee149fd2ec05a7e96a94.zip
Lighthouse and YellowLabTools optimizations
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/README.md b/README.md
index 0db22ce..be9f552 100644
--- a/README.md
+++ b/README.md
@@ -356,6 +356,13 @@ leanify -i 7777 *.png
leanify -i 7777 *.ico
```
+With larger displays and greater pixel density becoming common it is probably a good idea to use atleast a littly bit of lossy compression. For example you can use pngquant with a 93% quality and you will often get images around 1/2 the size. Understand that pngquant is cumulative, so you should keep your original images somewhere, and only ever use pngquant once per image, if you use it again and again on the same image then you will lower the image quality each time. Always use oxipng afterwards, oxipng is lossless.
+
+```bash
+pngquant --skip-if-larger --strip --quality=93-93 --speed 1 *.png
+oxipng -o max --strip all -a -Z *.png
+```
+
### Pre gzip/brotli content to serve with nginx:
If you are serving your site with nginx, you can pre gzip your content.