Skip to content

v0.2.0

Choose a tag to compare

@het-dave het-dave released this 25 Jul 08:12
· 2 commits to main since this release

Additive release. Nothing from 0.1.1 was removed or renamed.

New

  • compressImage(file, { targetSizeKb }) for POST /v1/convert/compress-image. PNG, JPEG and WebP only. The output keeps the input format and extension and is never larger than the input. Lossless first, with metadata stripped but the ICC profile and EXIF orientation preserved. targetSizeKb is best effort: an unreachable target returns the smallest file achieved rather than throwing, so check result.fileSize.
  • width and height on convertImage, for SVG input only (svg-to-png, svg-to-jpeg, svg-to-webp). Each 1 to 10000. One alone preserves the SVG's aspect ratio. Total output capped at 25 megapixels.
  • npx enconvert-sdk upgrade CLI, with --dry-run and version. Detects npm, pnpm, yarn or bun and always prints the command before running it.

Improved

  • convertToMarkdown and convertToPdf now pre-validate the file extension locally (22 and 36 accepted extensions), so a bad input throws before any upload.
  • Corrected the convertToPdf pdfOptions documentation. Full page geometry is honored for HTML, Markdown, plain text, EPUB, image and SVG input. Office, ODF, iWork, RTF and CSV input plus PDF passthrough accept grayscale only.
  • Repository URL fixed from the old conversionapi org to enconvert.

Published manually, so this version has no npm provenance attestation. Future releases publish from CI with provenance.