Releases: kuaner/html2img
Releases · kuaner/html2img
v0.8.0
v0.7.0
feat: auto-mode rendering and integration tests - Add auto mode: no flags needed, tool measures height + checks for [data-html2img-section] in one page load, then picks single/sections/segmented - Add AutoResult struct and measureAuto() to Renderer - Unified JSON output for all modes (single, sections, segmented, height check) - Add 37 tests: 29 pure logic + 8 integration tests running the real binary against fixture HTML files, verifying JSON output, file creation, and errors - Update README.md and SKILL.md with auto-mode documentation
v0.6.2
Fix
- Fix viewport unit rendering: Previously
webView.frame.heightwas set to the fullscrollHeight, causingvh/vwunits to inflate andposition: absoluteoverlays to render incorrectly (e.g. hero sections with large black areas). The WebView now keeps its native viewport size —createPDFwithWKPDFConfiguration.recthandles content beyond the visible frame correctly, so stretching was unnecessary for all modes (full page,--segment-height,--sections).
Docs
- README: add "CSS considerations" section documenting safe vs unsafe patterns for offscreen rendering (
vh/vwavoid,px/rem/clamp()safe,position: absolutesupported) - SKILL.md: add troubleshooting entries for hero black space, background-image issues, absolute overlays; add CSS guidelines section
v0.6.1
Release v0.6.1
v0.6.0
Release v0.6.0
v0.5.0
chore: rename skill to html2img and fix release package layout Made-with: Cursor
v0.4.0
v0.3.0
fix: use loadFileURL to allow local resource loading loadHTMLString with baseURL does not grant WKWebView file read access, so relative <script src="..."> and <link href="..."> are silently blocked. Switch to loadFileURL(_:allowingReadAccessTo:) which explicitly authorizes the HTML file's directory for local resource access.
v0.2.0
chore: add standalone universal binary tar.gz back to release
v0.1.0
fix: move binary to scripts/ per skill spec, remove build-from-source Skill is now fully self-contained. Binary lives in scripts/ directory alongside SKILL.md, matching the standard skill directory structure.