Skip to content

History / Architecture

Revisions

  • Document the library: install, usage, API, formats, previews, errors, architecture Nine pages. Written against the code rather than from memory: every export the API reference claims exists was checked, and every TypeScript sample was compiled against the published .d.ts from a clean consumer project. The page that matters most is Previews and Performance -- it is the reason the library exists, and it carries the one trap that silently costs 1.6x (hintMaxLongEdge is a hint, and JPEG's DCT only scales by powers of two, so you read the real size off the result rather than computing it). Home.md replaces the placeholder.

    @Abdulkader-Safi Abdulkader-Safi committed Jul 16, 2026