Disable creating new images; changed staging deploy

This commit is contained in:
Pieter Vander Vennet 2021-01-18 01:52:15 +01:00
parent ccc1f8eff5
commit b104feb080
2 changed files with 3 additions and 3 deletions

View file

@ -125,7 +125,7 @@ function createIcon(iconPath: string, size: number, layout: LayoutConfig) {
console.log("Creating icon ", name, newname)
// We already read to file, in order to crash here if the file is not found
readFileSync(iconPath);
svg2img(iconPath,
/* svg2img(iconPath,
// @ts-ignore
{width: size, height: size, preserveAspectRatio: true})
.then((buffer) => {
@ -134,7 +134,7 @@ function createIcon(iconPath: string, size: number, layout: LayoutConfig) {
}).catch((error) => {
console.log("ERROR while writing" + iconPath, error)
});
//*/
} catch (e) {
console.error("Could not read icon", iconPath, "due to", e)
}