Skip to content

Releases: kuaner/html2img

v0.8.0

26 Mar 09:20

Choose a tag to compare

feat: --version flag with auto-injected version from git tag

v0.7.0

26 Mar 09:20

Choose a tag to compare

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

26 Mar 05:59

Choose a tag to compare

Fix

  • Fix viewport unit rendering: Previously webView.frame.height was set to the full scrollHeight, causing vh/vw units to inflate and position: absolute overlays to render incorrectly (e.g. hero sections with large black areas). The WebView now keeps its native viewport size — createPDF with WKPDFConfiguration.rect handles 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/vw avoid, px/rem/clamp() safe, position: absolute supported)
  • SKILL.md: add troubleshooting entries for hero black space, background-image issues, absolute overlays; add CSS guidelines section

v0.6.1

25 Mar 16:07

Choose a tag to compare

Release v0.6.1

v0.6.0

24 Mar 04:02

Choose a tag to compare

Release v0.6.0

v0.5.0

23 Mar 08:20

Choose a tag to compare

chore: rename skill to html2img and fix release package layout

Made-with: Cursor

v0.4.0

19 Mar 05:37

Choose a tag to compare

What's Changed

  • CDN support — Remote CDN resources (Chart.js, Google Fonts, etc.) now work correctly via loadFileURL.
  • Docs updated — README and skill description reflect current capabilities.

v0.3.0

19 Mar 03:26

Choose a tag to compare

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

19 Mar 02:48

Choose a tag to compare

chore: add standalone universal binary tar.gz back to release

v0.1.0

19 Mar 02:45

Choose a tag to compare

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.