diff options
author | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2023-02-23 19:34:56 +0100 |
commit | 3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch) | |
tree | 75be5fba4368472fb11c8015aee026b2b9a71888 /assets/icons/icongen.js | |
parent | 8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff) | |
download | pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2 pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip |
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'assets/icons/icongen.js')
-rw-r--r-- | assets/icons/icongen.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/assets/icons/icongen.js b/assets/icons/icongen.js deleted file mode 100644 index 1d591bf..0000000 --- a/assets/icons/icongen.js +++ /dev/null @@ -1,21 +0,0 @@ -const fs = require('fs'); -const exec = require('child_process').execSync; -const path = require('path'); - -let files = fs.readdirSync(".").filter(i => i.endsWith(".svg")); - -for (let file of files) { - let name = file.substring(0, file.length - path.extname(file).length); - - if (fs.existsSync("./uncolored/" + name + ".svg")) { - console.log(name + "*"); - exec("convert -density 1200 -resize 448x448 -border 56x56 -bordercolor \"rgba(0,0,0,0)\" -channel RGB -depth 32 -negate -background none ./uncolored/" + file + " ./favicon/" + name + "-pre.png"); - exec("convert -composite -compose Dst_Over -gravity center -depth 32 -geometry 512x512 ./favicon/" + name + "-pre.png ../logo/newlogo-template.png -set colorspace RGB ./favicon/" + name + ".png"); - } else { - console.log(name); - exec("convert -density 1200 -resize 448x448 -border 56x56 -bordercolor \"rgba(0,0,0,0)\" -channel RGB -depth 32 -negate -background none " + file + " ./favicon/" + name + "-pre.png"); - exec("convert -composite -compose Dst_Over -gravity center -depth 32 -geometry 512x512 ./favicon/" + name + "-pre.png ../logo/newlogo-template.png -set colorspace RGB ./favicon/" + name + ".png"); - } - - fs.unlinkSync("./favicon/" + name + "-pre.png"); -}
\ No newline at end of file |