Html2image
this project is deprecated, please use chrome puppeteer instead.
Install / Use
/learn @jujusharp/Html2imageREADME
html2image
a golang wrapper to reander html, markdown to image
Usage
directly render image
- render png
http://127.0.0.1:10000/v1/html2img/to/img.png?url=http://www.google.com
- render jpg
http://127.0.0.1:10000/v1/html2img/to/img.jpg?url=http://www.google.com
- render png (markdown only)
- render jpg (markdown only)
Notice:
This program will analyze markdown (when url end with .md). If you don't want to render a markdown file, please add the nomd=true parameter to the url.
render image and return image url info
- render image and return json
http://127.0.0.1:10000/v1/html2img/to/img.json?url=http://www.google.com&format=jpg
- show image url from the json result
http://127.0.0.1:10000/v1/html2img/show/img/{your image url}
More Params In Url
html: the html content to render, if url has set, this param will ignore
md: the markdown content to render, if url has set,
this param will ignore (not support yet)
nomd: ingore markdown url
width: the html page width
height: the html page height
quality: the image quality
Changelog
2020/04/23 Add markdown render support.
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
