4 ms·
Seems like it would be a lot easier and a lot more powerful to use SVG instead of a giant string of URL parameters. Your service could provide pre-made templat
by bogwog 5y ago
Seems like it would be a lot easier and a lot more powerful to use SVG instead of a giant string of URL parameters.
Your service could provide pre-made templates and an editor, and expose textfields, images, fonts, etc options via URL parameters. Then your service just has to render the SVG and return it as an image with the requested dimensions/format.
Example:
`https://img.bruzu.com?s=<TEMPLATE https://img.bruzu.com?s=<TEMPLATE ID>&title=Hello&font=arial&width=800&height=480&fmt=png`
You could also pass the raw SVG source as a parameter as well, maybe with base 64 encoding or something like that.