✨ add logo variations
@ -25,7 +25,7 @@ var sizes = [
|
||||
167,
|
||||
172,
|
||||
180,
|
||||
180,
|
||||
192,
|
||||
196,
|
||||
216,
|
||||
256,
|
||||
@ -37,10 +37,10 @@ const density = 300;
|
||||
const quality = 100;
|
||||
const lossless = true;
|
||||
// var sizes = [16, 32, 64, 128, 256, 512, 1024, 2048];
|
||||
var sizes = [2048];
|
||||
// var sizes = [2048];
|
||||
|
||||
var formats = ["png", "jpg", "webp", "ico"];
|
||||
var formats = ["png"];
|
||||
// var formats = ["png"];
|
||||
|
||||
const files = ["icon.svg", "icon_fullsize.svg", "icon_round.svg"];
|
||||
// const files = ["icon.svg"];
|
||||
@ -125,7 +125,7 @@ const colors = {
|
||||
};
|
||||
|
||||
const { execSync } = require("child_process");
|
||||
const { readFileSync, writeFileSync } = require("fs");
|
||||
const { readFileSync, writeFileSync, existsSync } = require("fs");
|
||||
const path = require("path");
|
||||
const temp = path.join(__dirname, "temp.svg");
|
||||
|
||||
@ -141,8 +141,10 @@ for (const file of files) {
|
||||
const output = path.join(
|
||||
__dirname,
|
||||
"variants",
|
||||
`${name}_${size}_${colorName}_${styleName}.${format}`
|
||||
`${name}_${size}_${colorName}.${format}`
|
||||
// `${name}_${size}_${colorName}_${styleName}.${format}`
|
||||
);
|
||||
if (existsSync(output)) continue;
|
||||
var fileData = readFileSync(input, { encoding: "utf8" });
|
||||
|
||||
const cssEnd = fileData.indexOf(`</style>`);
|
||||
|
BIN
assets/logo/variants/icon_100_black.ico
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
assets/logo/variants/icon_100_black.jpg
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
assets/logo/variants/icon_100_black.webp
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
assets/logo/variants/icon_100_blue.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/logo/variants/icon_100_blue.jpg
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/logo/variants/icon_100_blue.webp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/logo/variants/icon_100_blurple.ico
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/logo/variants/icon_100_blurple.jpg
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
assets/logo/variants/icon_100_blurple.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/logo/variants/icon_100_white.ico
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/logo/variants/icon_100_white.jpg
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
assets/logo/variants/icon_100_white.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/logo/variants/icon_1024_black.ico
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
assets/logo/variants/icon_1024_black.jpg
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
assets/logo/variants/icon_1024_black.webp
Normal file
After Width: | Height: | Size: 13 KiB |
BIN
assets/logo/variants/icon_1024_blue.ico
Normal file
After Width: | Height: | Size: 124 KiB |
BIN
assets/logo/variants/icon_1024_blue.jpg
Normal file
After Width: | Height: | Size: 162 KiB |
BIN
assets/logo/variants/icon_1024_blue.webp
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
assets/logo/variants/icon_1024_blurple.ico
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
assets/logo/variants/icon_1024_blurple.jpg
Normal file
After Width: | Height: | Size: 86 KiB |
BIN
assets/logo/variants/icon_1024_blurple.webp
Normal file
After Width: | Height: | Size: 38 KiB |
BIN
assets/logo/variants/icon_1024_white.ico
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
assets/logo/variants/icon_1024_white.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
assets/logo/variants/icon_1024_white.webp
Normal file
After Width: | Height: | Size: 22 KiB |
BIN
assets/logo/variants/icon_114_black.ico
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/logo/variants/icon_114_black.jpg
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
assets/logo/variants/icon_114_black.webp
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
assets/logo/variants/icon_114_blue.ico
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
assets/logo/variants/icon_114_blue.jpg
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
assets/logo/variants/icon_114_blue.webp
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
assets/logo/variants/icon_114_blurple.ico
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/logo/variants/icon_114_blurple.jpg
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
assets/logo/variants/icon_114_blurple.webp
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
assets/logo/variants/icon_114_white.ico
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
assets/logo/variants/icon_114_white.jpg
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/logo/variants/icon_114_white.webp
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
assets/logo/variants/icon_120_black.ico
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/logo/variants/icon_120_black.jpg
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/logo/variants/icon_120_black.webp
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/logo/variants/icon_120_blue.ico
Normal file
After Width: | Height: | Size: 7.0 KiB |
BIN
assets/logo/variants/icon_120_blue.jpg
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
assets/logo/variants/icon_120_blue.webp
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/logo/variants/icon_120_blurple.ico
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/logo/variants/icon_120_blurple.jpg
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
assets/logo/variants/icon_120_blurple.webp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/logo/variants/icon_120_white.ico
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
assets/logo/variants/icon_120_white.jpg
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
assets/logo/variants/icon_120_white.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/logo/variants/icon_128_black.ico
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
assets/logo/variants/icon_128_black.jpg
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
assets/logo/variants/icon_128_black.webp
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/logo/variants/icon_128_blue.ico
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
assets/logo/variants/icon_128_blue.jpg
Normal file
After Width: | Height: | Size: 9.7 KiB |
BIN
assets/logo/variants/icon_128_blue.webp
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
assets/logo/variants/icon_128_blurple.ico
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
assets/logo/variants/icon_128_blurple.jpg
Normal file
After Width: | Height: | Size: 7.7 KiB |
BIN
assets/logo/variants/icon_128_blurple.webp
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
assets/logo/variants/icon_128_white.ico
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/logo/variants/icon_128_white.jpg
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
assets/logo/variants/icon_128_white.webp
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
assets/logo/variants/icon_144_black.ico
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
assets/logo/variants/icon_144_black.jpg
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
assets/logo/variants/icon_144_black.webp
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
assets/logo/variants/icon_144_blue.ico
Normal file
After Width: | Height: | Size: 9.0 KiB |
BIN
assets/logo/variants/icon_144_blue.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/logo/variants/icon_144_blue.webp
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/logo/variants/icon_144_blurple.ico
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
assets/logo/variants/icon_144_blurple.jpg
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
assets/logo/variants/icon_144_blurple.webp
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
assets/logo/variants/icon_144_white.ico
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
assets/logo/variants/icon_144_white.jpg
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
assets/logo/variants/icon_144_white.webp
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
assets/logo/variants/icon_152_black.ico
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
assets/logo/variants/icon_152_black.jpg
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/logo/variants/icon_152_black.webp
Normal file
After Width: | Height: | Size: 2.0 KiB |
BIN
assets/logo/variants/icon_152_blue.ico
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
assets/logo/variants/icon_152_blue.jpg
Normal file
After Width: | Height: | Size: 12 KiB |
BIN
assets/logo/variants/icon_152_blue.webp
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
assets/logo/variants/icon_152_blurple.ico
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
assets/logo/variants/icon_152_blurple.jpg
Normal file
After Width: | Height: | Size: 9.5 KiB |
BIN
assets/logo/variants/icon_152_blurple.webp
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
assets/logo/variants/icon_152_white.ico
Normal file
After Width: | Height: | Size: 5.3 KiB |
BIN
assets/logo/variants/icon_152_white.jpg
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
assets/logo/variants/icon_152_white.webp
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
assets/logo/variants/icon_167_black.ico
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
assets/logo/variants/icon_167_black.jpg
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
assets/logo/variants/icon_167_black.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
assets/logo/variants/icon_167_blue.ico
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
assets/logo/variants/icon_167_blue.jpg
Normal file
After Width: | Height: | Size: 14 KiB |
BIN
assets/logo/variants/icon_167_blue.webp
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
assets/logo/variants/icon_167_blurple.ico
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
assets/logo/variants/icon_167_blurple.jpg
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
assets/logo/variants/icon_167_blurple.webp
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
assets/logo/variants/icon_167_white.ico
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
assets/logo/variants/icon_167_white.jpg
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
assets/logo/variants/icon_167_white.webp
Normal file
After Width: | Height: | Size: 2.9 KiB |
BIN
assets/logo/variants/icon_172_black.ico
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
assets/logo/variants/icon_172_black.jpg
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
assets/logo/variants/icon_172_black.webp
Normal file
After Width: | Height: | Size: 2.2 KiB |