aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJad <[email protected]>2023-03-09 11:43:09 +0800
committerGitHub <[email protected]>2023-03-09 11:43:09 +0800
commitf6b515ead559a33df7fa07125723ef14242feeb0 (patch)
tree07c03da47f35afb868356f88cc1e58f040f09c66
parentperf: Delayed writing to database (diff)
parentfeat: render images as pixelated (diff)
downloadcounter-f6b515ead559a33df7fa07125723ef14242feeb0.tar.xz
counter-f6b515ead559a33df7fa07125723ef14242feeb0.zip
Merge pull request #26 from flazepe/patch-1
feat: render images as pixelated
-rw-r--r--utils/themify.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/themify.js b/utils/themify.js
index 2db9886..5487a83 100644
--- a/utils/themify.js
+++ b/utils/themify.js
@@ -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
-} \ No newline at end of file
+}