react-native-tiff-converter
v0.0.73
Published
Convert tiff to image in react native. Support multi page TIFF.
Downloads
845
Readme
This is a new React Native project, bootstrapped using @react-native-community/cli.
Getting Started
Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
Install package
# using npm
npm i react-native-tiff-converter
# OR using Yarn
yarn add react-native-tiff-converterUse convert function
import { convertTiffToPng } from 'react-native-tiff-converter';
const pngFilePaths = await convertTiffToPng(filePath, 'fileId');
// pngFilePaths - array with uri to each page
// fileId - optional, needed in case you do not want to overwrite previous files16KB Page Size Compatibility
This package includes native libraries built with 16KB page size alignment (required for Android 15+).
Native libraries are pre-built with:
- NDK r28 with 16KB alignment flags (
-Wl,-z,max-page-size=16384) - All
.sofiles have proper 16KB alignment baked in at compile time - Built from Android-TiffBitmapFactory source
Your app should use:
- Android Gradle Plugin 8.5.1 or higher
- NDK r28 or newer (optional, only if building native code)
The native libraries work out-of-the-box with no additional configuration required.
