]> Sergey Matveev's repositories - dotfiles.git/commitdiff
GIF support
authorSergey Matveev <stargrave@stargrave.org>
Fri, 14 Apr 2023 09:32:11 +0000 (12:32 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 14 Apr 2023 09:32:11 +0000 (12:32 +0300)
img/bin/my-jxll

index 71d768b218e622e90ba89fe81afefb57b2f084f5..3515f4c26011703a05dc509293c2ed2631b26235 100755 (executable)
@@ -5,6 +5,7 @@ tmp=`mktemp`
 trap "rm -f $tmp.pnm $tmp.jxl" HUP PIPE INT QUIT TERM EXIT
 case $1:e in
 pnm) cp $1 $tmp.pnm ;;
+gif) giftopnm < $1 > $tmp.pnm ;;
 png) pngtopnm < $1 > $tmp.pnm ;;
 webp) dwebp -mt -quiet -o $tmp.pnm $1 ;;
 *)