-
Notifications
You must be signed in to change notification settings - Fork 3
/
icon-avif.cmd
24 lines (20 loc) · 1.06 KB
/
icon-avif.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
rem This script convert all PNG icons to AVIF format.
rem Requires Node.js 14.15.0+.
rem see https://github.com/lovell/avif-cli
call :realpath %~dp0..\frontend\icon
set wd=%retval:\=/%
npx avif --input="%wd%/chakram/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/delta/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/junior/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/oxygen/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/senary/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/senary2/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/tulliana/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/ubuntu/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/whistlepuff/*.png" --quality=50 --effort=9 --overwrite --verbose
npx avif --input="%wd%/xrabbit/*.png" --quality=50 --effort=9 --overwrite --verbose
exit /b 0
:realpath
set retval=%~f1
exit /b