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
Asked
Active
Viewed 954 times
1
-
1FYI: https://stackoverflow.com/q/18922880/1207049 – marekful Feb 15 '21 at 17:09
1 Answers
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