aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2021-08-14 02:23:37 +0300
committereug-vs <eugene@eug-vs.xyz>2021-08-14 02:23:37 +0300
commit601fb64825806c71906941f68a97e8211c72d624 (patch)
treea8bf6ef0e7099122cdbe8f58282304828f4da1cd
parent53b16af3ef5f4d62e8b2319f2e2c60923e04f063 (diff)
downloadtelegram-based-wojak-601fb64825806c71906941f68a97e8211c72d624.tar.gz
feat: crop stickers and more effectively remove bg
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4ddf32e..09a6e3d 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,12 @@ view: all
out/%.png: src/%.*
@mkdir -p out
- convert $< -fuzz $(FUZZ) -fill none -floodfill +0+0 white -resize $(SIZE)\> $@
+ magick $< \
+ -fuzz $(FUZZ) -fill none \
+ -floodfill +0+0 white \
+ -floodfill "+%[fx:w-1]+0" white \
+ -trim +repage \
+ -resize $(SIZE)\> $@
clean:
rm -rf out