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;