https://github.com/zettca/picgen
An SVG placeholder image generator
https://github.com/zettca/picgen
deno deno-deploy placeholder placeholder-image svg typescript
Last synced: about 1 month ago
JSON representation
An SVG placeholder image generator
- Host: GitHub
- URL: https://github.com/zettca/picgen
- Owner: zettca
- License: mit
- Created: 2023-09-08T17:48:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-18T22:16:20.000Z (almost 3 years ago)
- Last Synced: 2026-03-01T22:00:32.579Z (4 months ago)
- Topics: deno, deno-deploy, placeholder, placeholder-image, svg, typescript
- Language: TypeScript
- Homepage: https://picgen.deno.dev
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# picgen
A simple placeholder image generator
## Usage
### API
```ts
import { generate } from "https://deno.land/x/picgen/mod.tsx";
await generate(); // generates default SVG
await generate({ width: 600, color: "teal" }); // generates SVG with custom parameters
```
### Online
Deployed at https://picgen.deno.dev. Configurable via path/search params:
- https://picgen.deno.dev/600
- https://picgen.deno.dev/600x400?bgcolor=green&text=Hey👋