From 601fb64825806c71906941f68a97e8211c72d624 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Aug 2021 02:23:37 +0300 Subject: feat: crop stickers and more effectively remove bg --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3