tiff_image_adapter library

Optional bridge to package:image.

package:tiff never imports package:image from its main entry point (package:tiff/tiff.dart) — that stays a lightweight, package:image-free dependency for anyone who only needs to read/write TIFF pixels directly. Import this library instead when you want to:

  • convert a decoded TiffImage to an image.Image (crop/resize/composite it, save it as PNG, etc. using the wider image ecosystem), or
  • build a TiffImageSpec from an image.Image to write it out as TIFF, or
  • decode JPEG-compressed TIFF strips/tiles (Compression 6/7) — TIFF's baseline spec has no bundled JPEG codec, so this is the only way to read those without bringing your own decoder.

Classes

TiffImageAdapter
Converts between TiffImage/TiffImageSpec and package:image's img.Image.