diff --git a/example/compare.js b/example/compare.js index c6c6e055..b8a5607e 100644 --- a/example/compare.js +++ b/example/compare.js @@ -8,10 +8,9 @@ const sharp = require('sharp') const { Resvg } = require('../index') async function main() { - const svg = await fs.readFile(join(__dirname, './anime_girl.svg')) + const svg = await fs.readFile(join(__dirname, './text.svg')) const zoom = 1 const w = 1052 * zoom // resize width - const h = 744 * zoom // resize height const t0 = performance.now() const opts = { @@ -30,6 +29,8 @@ async function main() { const pngBuffer = pngData.asPng() const t1 = performance.now() + const h = pngData.height * zoom // resize height + console.info('✨ resvg-js done in', t1 - t0, 'ms') await fs.writeFile(join(__dirname, './out-resvg-js.png'), pngBuffer) diff --git a/example/out-resvg-js.png b/example/out-resvg-js.png index e2f8ca97..e3e3fa63 100644 Binary files a/example/out-resvg-js.png and b/example/out-resvg-js.png differ diff --git a/example/out-sharp.png b/example/out-sharp.png index 23cff2b1..01cccdc7 100644 Binary files a/example/out-sharp.png and b/example/out-sharp.png differ diff --git a/example/out-skr-canvas.png b/example/out-skr-canvas.png index 8e005211..909f0d9f 100644 Binary files a/example/out-skr-canvas.png and b/example/out-skr-canvas.png differ