encodeTiffFile function
Encode an image
to a TIFF file at the given path
.
Implementation
Future<bool> encodeTiffFile(String path, Image image,
{bool singleFrame = false}) async {
if (!supportsFileAccess()) {
return false;
}
final bytes = TiffEncoder().encode(image, singleFrame: singleFrame);
return writeFile(path, bytes);
}