@dicebear/converter
Advanced tools
Comparing version 9.0.0 to 9.0.1
@@ -35,9 +35,8 @@ import { promises as fs } from 'node:fs'; | ||
async function toBuffer(rawSvg, format, exif, options) { | ||
var _a; | ||
const fonts = (_a = options.fonts) !== null && _a !== void 0 ? _a : []; | ||
const hasFonts = Array.isArray(options.fonts); | ||
const { svg } = ensureSize(rawSvg); | ||
let buffer = (await renderAsync(svg, { | ||
font: { | ||
loadSystemFonts: fonts.length === 0, | ||
fontFiles: fonts.length > 0 ? fonts : undefined, | ||
loadSystemFonts: !hasFonts, | ||
fontFiles: hasFonts ? options.fonts : undefined, | ||
}, | ||
@@ -54,3 +53,3 @@ })).asPng(); | ||
await fs.writeFile(path, buffer); | ||
await exiftool.write(path, exif, ['-overwrite_original']); | ||
await exiftool.write(path, exif, { writeArgs: ['-overwrite_original'] }); | ||
return fs.readFile(path); | ||
@@ -57,0 +56,0 @@ }); |
{ | ||
"name": "@dicebear/converter", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"description": "SVG Converter for DiceBear", | ||
@@ -57,3 +57,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "c9e66450840d4f29faee6362249348bb3d18798b" | ||
"gitHead": "96e800ad4a1f2175f225fe1639fb91624013e01c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12102
255