Merge pull request #26 from flazepe/patch-1
feat: render images as pixelated
This commit is contained in:
commit
f6b515ead5
@ -53,7 +53,7 @@ function getCountImage({ count, theme='moebooru', length=7 }) {
|
||||
}, '')
|
||||
|
||||
return `<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg width="${x}" height="${y}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<svg width="${x}" height="${y}" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="image-rendering: pixelated;">
|
||||
<title>Moe Count</title>
|
||||
<g>
|
||||
${parts}
|
||||
@ -64,4 +64,4 @@ function getCountImage({ count, theme='moebooru', length=7 }) {
|
||||
|
||||
module.exports = {
|
||||
getCountImage
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user