https://github.com/g-harel/svgsaurus
svg generation by query string
https://github.com/g-harel/svgsaurus
generator query-params svg
Last synced: 8 months ago
JSON representation
svg generation by query string
- Host: GitHub
- URL: https://github.com/g-harel/svgsaurus
- Owner: g-harel
- License: mit
- Created: 2018-07-13T02:26:26.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-06T00:39:06.000Z (almost 8 years ago)
- Last Synced: 2025-03-28T17:57:31.576Z (about 1 year ago)
- Topics: generator, query-params, svg
- Language: Go
- Homepage: https://svgsaur.us
- Size: 2.4 MB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

  

 
* Live editing of output image using query params
* Fine-grained control over font's size, color, family, etc.
* Easily control padding and position of text
* Use background color to generate colorful accents
* Precisely position content with spacer images
## Usage 
This project is deployed as a [lambda function](https://aws.amazon.com/lambda/) responding to requests at [svgsaur.us](https://svgsaur.us).
Use the url's query string to customize the generated svg image.
param
description
default
example
result
t
text content
svgsaurus
https://svgsaur.us?t=abc123
s
font size
55
https://svgsaur.us?s=140
h
box height
60
https://svgsaur.us?h=30
w
box width
265
https://svgsaur.us?w=110
x
horizontal offset
5
https://svgsaur.us?x=40
y
vertical offset
46
https://svgsaur.us?y=10
f
font family
arial
https://svgsaur.us?f=impact
c
font color
000000
https://svgsaur.us?c=5ac2bc
b
box color
https://svgsaur.us?b=5ac2bc
o
options
https://svgsaur.us?o=biu
r
replacement
_
https://svgsaur.us?r=s
## License
[MIT](./LICENSE)
