summaryrefslogtreecommitdiff
path: root/smartresize.sh
diff options
context:
space:
mode:
Diffstat (limited to 'smartresize.sh')
-rwxr-xr-xsmartresize.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/smartresize.sh b/smartresize.sh
new file mode 100755
index 0000000..b38771e
--- /dev/null
+++ b/smartresize.sh
@@ -0,0 +1,3 @@
+smartresize() {
+ mogrify -path $3 -filter Triangle -define filter:support=2 -thumbnail $2 -unsharp 0.25x0.08+8.3+0.045 -dither None -posterize 136 -quality 82 -define jpeg:fancy-upsampling=off -define png:compression-filter=5 -define png:compression-level=9 -define png:compression-strategy=1 -define png:exclude-chunk=all -interlace none -colorspace sRGB $1
+}