Skip to content

v2.9.0

Choose a tag to compare

@almasumdev almasumdev released this 29 Aug 20:14
· 76 commits to main since this release

Broader image-format support for Sheet.insertImage.

Added

  • insertImage now accepts BMP, TIFF, WebP, ICO, and the EMF and WMF metafiles,
    in addition to the existing PNG, JPEG, and GIF. Each is detected from its magic
    bytes, written with the correct OpenXML content type, and (unless a size is
    passed) has its intrinsic pixel size read from the header, so anchored pictures
    are sized correctly without a manual width/height. WebP dimensions are read
    from the VP8X, VP8 (lossy), and VP8L (lossless) chunks; TIFF from its first
    IFD; BMP, ICO, EMF, and WMF from their headers.