From 4a928713dcf22449e677314af620b0785a312058 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 1 Apr 2024 12:34:00 -0300 Subject: [PATCH] Add bin/iconify --- bin/iconify | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 bin/iconify diff --git a/bin/iconify b/bin/iconify new file mode 100755 index 0000000..ee863e9 --- /dev/null +++ b/bin/iconify @@ -0,0 +1,12 @@ +#!/bin/sh +set -e +sizes="16x16 48x48 64x64 128x128 256x256" +dir="src/images/icons" +for size in ${sizes}; do + convert ${dir}/icon.svg \ + -resize ${size} \ + -background none \ + -gravity center \ + -extent $size \ + ${dir}/wtf${size}.png +done