bigger is better

This commit is contained in:
Omar Najjar 2025-03-11 02:10:52 +11:00
parent 952e483db0
commit 3e9ca92304

View file

@ -1690,17 +1690,17 @@ function getShareableImageUrl(proposal) {
// Transformation parameters for text overlay - adjust for better readability
const textParams =
`l_text:Roboto_30_bold:${encodedText}` +
`,co_rgb:EAEAEA,w_600,c_fit,g_north,y_100,x_50` +
`/l_text:Roboto_22_bold:${encodedAuthor}` +
`,co_rgb:FF00FF,g_north_west,y_30,x_50` +
`/l_text:Roboto_18:✔ ${encodedSignatures} verified signatures` +
`,co_rgb:00FF00,g_north_west,y_180,x_50` +
`/l_text:Roboto_18:${encodedupVotes} votes` +
`,co_rgb:EAEAEA,g_north_west,y_220,x_50` +
`/l_text:Roboto_16:${encodedTimestamp}` +
`,co_rgb:AAAAAA,g_north_west,y_250,x_50` +
`/b_black,w_800,h_400,c_fill`;
`b_black,w_1200,h_600,c_fill` +
`/l_text:Roboto_40_bold:${encodedText}` +
`,co_rgb:EAEAEA,w_900,c_fit,g_north,y_120,x_60` +
`/l_text:Roboto_28_bold:${encodedAuthor}` +
`,co_rgb:FF00FF,g_north_west,y_50,x_60` +
`/l_text:Roboto_24:✔ ${encodedSignatures} verified signatures` +
`,co_rgb:00FF00,g_north_west,y_250,x_60` +
`/l_text:Roboto_24:${encodedVotes} votes` +
`,co_rgb:EAEAEA,g_north_west,y_300,x_60` +
`/l_text:Roboto_20:${encodedTimestamp}` +
`,co_rgb:AAAAAA,g_north_west,y_350,x_60`;
// URL of your template image in R2
const templateUrl = encodeURIComponent("https://radical.omar-c29.workers.dev/memes/petition-template.png");