fix by musicland ai and new club advantages
This commit is contained in:
@@ -42,7 +42,8 @@ const buildBrandSvg = ({ width = 1024, height = 1024, text = BRAND_TEXT } = {})
|
||||
const rectX = Math.max(0, Math.round(safeWidth - margin - rectWidth))
|
||||
const rectY = Math.max(0, Math.round(safeHeight - margin - rectHeight))
|
||||
const textX = rectX + rectWidth / 2
|
||||
const textY = rectY + rectHeight / 2
|
||||
const baselineShift = Math.round(fontSize * 0.3)
|
||||
const textY = rectY + rectHeight / 2 + baselineShift
|
||||
const rectRadius = Math.max(6, Math.round(rectHeight * 0.35))
|
||||
|
||||
return Buffer.from(`
|
||||
@@ -65,7 +66,6 @@ const buildBrandSvg = ({ width = 1024, height = 1024, text = BRAND_TEXT } = {})
|
||||
x="${textX}"
|
||||
y="${textY}"
|
||||
text-anchor="middle"
|
||||
dominant-baseline="middle"
|
||||
font-family="${BRAND_FONT_FAMILY}"
|
||||
font-size="${fontSize}"
|
||||
font-style="italic"
|
||||
|
||||
Reference in New Issue
Block a user