summaryrefslogtreecommitdiff
path: root/resize-pad-transparent.sh
diff options
context:
space:
mode:
Diffstat (limited to 'resize-pad-transparent.sh')
-rw-r--r--resize-pad-transparent.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/resize-pad-transparent.sh b/resize-pad-transparent.sh
new file mode 100644
index 0000000..4d81375
--- /dev/null
+++ b/resize-pad-transparent.sh
@@ -0,0 +1,2 @@
+# resize and pad image with transparency
+convert -background none -gravity center image.png -resize 400x400 -extent 400x400 result.png