Initial commit

This commit is contained in:
2022-01-21 01:00:13 +03:00
commit 20ad4adfe8
7 changed files with 18781 additions and 0 deletions

12
post2Svg.js Normal file
View File

@@ -0,0 +1,12 @@
function makeSvg(image) {
image = image.replaceAll('&', '&')
return `<svg viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg">
<rect width="100%" height="100%" fill="white" />
<image x="50" y="50" width="900" height="900" href="${image}"/>
</svg>`;
}
export default function(post) {
return makeSvg(post.attachments[0].photo.sizes[0].url)
}