Commit 143411e5 authored by deing's avatar deing

Merge branch 'image-optim' into 'master'


See merge request !11
parents b19e1158 0e1f428e
Pipeline #48863062 passed with stage
in 2 minutes
......@@ -12,3 +12,13 @@
- __DO NOT__ attempt to submit content which is illegal in Germany or violates the Tildes Code of Conduct.
- __DO__ re-read everything once after you've written it and hunt for spelling mistakes.
- __DO__ attempt to use inclusive language by default, such as singular "they" for users of unknown gender. Your request won't be denied for this, but might be edited.
# Optimization Recommendations
Any media contributed to the wiki should be optimized (made smaller to reduce loading times). (e.g. use `png` instead of `bmp` or for web graphics, `jpg` or `webp` instead of `raw` for large photographs)
For example you could use [optipng]( and [jpegoptim]( to losslessly optimize on Linux. Be sure to __make backups__ before you run anything!
The following one liners will losslessly optimize all `.png` and `.jpg`/`.jpeg` files in a folder (including subfolders):
- `find . -name "*.png" | while read p;do optipng -o5 --quiet "$p";done`
- `find . -type f \( -name "*.jpg" -or -name "*.jpeg" \) | while read p;do jpegoptim -s --quiet "$p";done`
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment