Skip to content

Commit 11b680e

Browse files
committed
Don’t convert to string when we want the raw SVG buffer.
1 parent 1a48154 commit 11b680e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format-hooks/svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = async function createSvg(sharpInstance) {
44
let input = sharpInstance.options.input;
55
let svgBuffer = input.buffer;
66
if(svgBuffer) { // remote URL already has buffer
7-
return svgBuffer.toString("utf-8");
7+
return svgBuffer;
88
} else { // local file system
99
return fsp.readFile(input.file);
1010
}

0 commit comments

Comments
 (0)