m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2023-06-18 01:20:55 +0200
committerMarcin Chrzanowski <m@m-chrzan.xyz>2023-06-18 01:20:55 +0200
commit385ac8664c591cafaa1ac0310946a0d59524f7f9 (patch)
tree8df15b226c1ab2b56b0fd0bdcf413c7506e3470f
parent78402184b8206f86fceebb567cb28d42e693395c (diff)
Add image compression
-rw-r--r--imagemagick.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/imagemagick.md b/imagemagick.md
index e2828ad..f4783df 100644
--- a/imagemagick.md
+++ b/imagemagick.md
@@ -14,6 +14,12 @@ Force resize to be exactly the given geometry with `!`
convert in.jpg --resize 720x720\! out.jpg
+## Compress
+
+### JPG
+
+convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% source.jpg result.jpg
+
## Convert PDF
PDFs can be converted to images. Set `-density XxY` for better resolution.