Verified Commit 0e1f428e authored by Allen Mak's avatar Allen Mak

Updated CONTRIBUTING.

Added image size optimization one-liners.
parent 9612b829
......@@ -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](http://optipng.sourceforge.net/) and [jpegoptim](https://github.com/tjko/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