react-thumbnail-creator
v1.0.2
Published
The 'react-thumbnail-creator' module is a comprehensive React component for easily generating thumbnails from videos. It provides a simple and efficient way to extract high-quality thumbnails from video files at specific timestamps. The module seamlessly
Downloads
6
Maintainers
Readme
Installation
npm install react-thumbnail-creator
# or
yarn add react-thumbnail-creator
NOTE
It will return base64 image string
Example
import { useEffect } from "react";
import sampleVideo from "./assets/sample.mp4";
import "./App.css";
import createThumbnail from "react-thumbnail-creator";
function App() {
useEffect(() => {
createThumbnail({
url: sampleVideo,
timeStamp: 6,
}).then((thumbnail) => {
console.log(thumbnail);
});
}, []);
return (
<>
<div className="div"></div>
</>
);
}
export default App;