react-thumbnail-creator

1.0.2 • Public • Published

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;

Package Sidebar

Install

npm i react-thumbnail-creator

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.64 kB

Total Files

3

Last publish

Collaborators

  • desairamesh