Spaces:
Running
Running
rippanteq7
commited on
Commit
•
2938874
1
Parent(s):
c9fe9fe
Update methods/generate.js
Browse files- methods/generate.js +1 -1
methods/generate.js
CHANGED
@@ -284,7 +284,7 @@ module.exports = async (parm) => {
|
|
284 |
canvasPicCtx.textAlign = 'center'
|
285 |
canvasPicCtx.translate(70, canvasPic.height / 2)
|
286 |
canvasPicCtx.rotate(-Math.PI / 2)
|
287 |
-
canvasPicCtx.fillText('@QuotLyBot', 0, 0)
|
288 |
|
289 |
quoteImage = await sharp(canvasPic.toBuffer()).png({ lossless: true, force: true }).toBuffer()
|
290 |
} else {
|
|
|
284 |
canvasPicCtx.textAlign = 'center'
|
285 |
canvasPicCtx.translate(70, canvasPic.height / 2)
|
286 |
canvasPicCtx.rotate(-Math.PI / 2)
|
287 |
+
if (parm.watermark) canvasPicCtx.fillText(parm.watermark || '@QuotLyBot', 0, 0)
|
288 |
|
289 |
quoteImage = await sharp(canvasPic.toBuffer()).png({ lossless: true, force: true }).toBuffer()
|
290 |
} else {
|