@lowkey/thumbnailer
v1.2.0
Published
Create a thumbnail for image
Downloads
3
Readme
@lowkey/thumbnailer
React Native module to create a thumbnail for video (iOS only)
Installation
npm install @lowkey/thumbnailer
cd ios && pod install
Usage
import Thumbnailer from "@lowkey/thumbnailer";
// ...
Thumbnailer.getThumbnail("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerBlazes.mp4", (error, data) => {
console.log('URI:', data.uri);
console.log('Size:', data.size);
console.log('Width:', data.width);
console.log('Height:', data.height);
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT