starlight-cannoli-plugins 2.13.0 → 2.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -263,7 +263,7 @@ function computeJpgPath(tempOutputDir, filePath, blockId) {
|
|
|
263
263
|
}
|
|
264
264
|
async function writeJpgFromSvg(svgPath, jpgPath) {
|
|
265
265
|
mkdirSync(dirname(jpgPath), { recursive: true });
|
|
266
|
-
await sharp(svgPath).flatten({ background: { r: 255, g: 255, b: 255 } }).jpeg({ quality: 90 }).toFile(jpgPath);
|
|
266
|
+
await sharp(svgPath, { density: 300 }).flatten({ background: { r: 255, g: 255, b: 255 } }).jpeg({ quality: 90 }).toFile(jpgPath);
|
|
267
267
|
}
|
|
268
268
|
function stripAnsi(text) {
|
|
269
269
|
return text.replace(/\x1b\[[0-9;]*m/g, "");
|
package/dist/index.js
CHANGED
package/package.json
CHANGED