-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprocessors.cfg
More file actions
38 lines (28 loc) · 1.28 KB
/
processors.cfg
File metadata and controls
38 lines (28 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
default=mv {{.Source}} {{.Target}}
# JPEG family
jpg=convert {{.Source}} -strip -interlace Plane -quality 85 {{.Target}}
jpeg=convert {{.Source}} -strip -interlace Plane -quality 85 {{.Target}}
jpe=convert {{.Source}} -strip -interlace Plane -quality 85 {{.Target}}
# PNG (lossy 8-bit)
png=convert {{.Source}} -strip -quality 85 PNG8:{{.Target}}
# WebP (modern lossy format)
webp=convert {{.Source}} -quality 80 {{.Target}}
# GIF (optimize + remove metadata)
gif=convert {{.Source}} -strip -layers Optimize {{.Target}}
# TIFF (with compression)
tif=convert {{.Source}} -strip -compress lzw {{.Target}}
tiff=convert {{.Source}} -strip -compress lzw {{.Target}}
# BMP (not compressed, just cleaned up)
bmp=convert {{.Source}} -strip {{.Target}}
# ICO (icon format)
ico=convert {{.Source}} -define icon:auto-resize=64,48,32,16 {{.Target}}
# HEIC / HEIF (if supported in your build)
heic=convert {{.Source}} -quality 80 {{.Target}}
heif=convert {{.Source}} -quality 80 {{.Target}}
# SVG (convert to optimized raster image, like PNG)
svg=convert {{.Source}} -strip -background none -density 300 -quality 85 {{.Target}}
# NetPBM family
ppm=convert {{.Source}} -strip {{.Target}}
pgm=convert {{.Source}} -strip {{.Target}}
pbm=convert {{.Source}} -strip {{.Target}}
pnm=convert {{.Source}} -strip {{.Target}}