We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Updated Installation (markdown)
Follow the rename to safi-image The repo and the npm package are both safi-image now. npm refused to publish s-img: it normalises names by stripping punctuation, so s-img collided exactly with the existing simg package. Install now leads with `npm i safi-image`, with the GitHub install kept for unreleased commits.
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.
Initial Home page