diff --git a/logo.png b/logo.png index d066b21..7387807 100644 Binary files a/logo.png and b/logo.png differ diff --git a/logo/generate.js b/logo/generate.js index 88a87f9..afb8d90 100644 --- a/logo/generate.js +++ b/logo/generate.js @@ -1,17 +1,23 @@ -/* -Send Button by Bruno Bosse from the Noun Project -https://thenounproject.com/brunobosse/collection/basics/?i=1054386 -*/ +const puppeteer = require('puppeteer'); +const logoPath = `file://${process.cwd()}/logo/logo.html`; -const fs = require('fs'); -const htmlConvert = require('html-convert'); - -const convert = htmlConvert(); -let ws = fs.createWriteStream('logo.png'); -let rs = convert('logo/logo.html', { - width: 350, - height: 76 +puppeteer.launch() +.then(browser => { + return browser.newPage() + .then(page => { + return page.goto(logoPath) + .then(() => page); + }) + .then(page => { + return page.setViewport({ + width: 600, + height: 250, + deviceScaleFactor: 2 + }) + .then(() => page.screenshot({ + path: 'logo.png', + omitBackground: true + })); + }) + .then(() => browser.close()); }); - -rs.pipe(ws); -ws.on('finish', () => process.exit()); diff --git a/logo/icon.svg b/logo/icon.svg deleted file mode 100644 index 77b2f76..0000000 --- a/logo/icon.svg +++ /dev/null @@ -1,81 +0,0 @@ - - - Layer 1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/logo/logo.html b/logo/logo.html index 32bc5d2..ddaa354 100644 --- a/logo/logo.html +++ b/logo/logo.html @@ -1,29 +1,44 @@ - + -

- ftp-srv -

- +
+

+ ftp +
+ srv +

+