react-native-video-thumbnail-too
TypeScript icon, indicating that this package has built-in type declarations

0.1.16 • Public • Published

react-native-video-thumbnail-too

extracts a png OR jpg thumbnail from a video

Installation

yarn add react-native-video-thumbnail-too
npx react-native link react-native-video-thumbnail-too

IOS

cd ios && pod install

Android

# already done

Usage

import { extractThumbnail } from "react-native-video-thumbnail-too";

const { uri, width, height } = await extractThumbnail({
    pathToVideoFile, // required
    timeInMilliseconds, // optional, default: 0
    imageType, // optional, default: 'jpg', can be 'jpg' or 'png'
    quality // optional, default: 100, only applies to 'jpg'
});

Need anything custom?

https://www.jasonsebring.com/contact

Tip Jar

https://www.jasonsebring.com/pay

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i react-native-video-thumbnail-too

Weekly Downloads

1

Version

0.1.16

License

MIT

Unpacked Size

3.92 MB

Total Files

107

Last publish

Collaborators

  • sebringj