1

I am working on a reactJS project I want to generate thumbnails of videos and images (same image with low size) on the frontend side, without using any backend service, is there any library available or any other method? Thanks

R.singh
  • 259
  • 1
  • 13

1 Answers1

1

Short answer is YES. You need to look for something called canvas. There are a few libraries out there for doing this like the below one.

https://github.com/brothatru/react-video-thumbnail

But if you are going to build it yourself, as I said you need to search for create thumbnail from image/video

sadrzadehsina
  • 1,331
  • 13
  • 26
  • i did that now the problem is i am not able to use toDataURL() function as i want to send that thumbnail to a backend api. is there any suggestions you may give? – R.singh Feb 16 '21 at 06:30