
Research
wget to Wipeout: Malicious Go Modules Fetch Destructive Payload
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
browser-video-thumbnail-generator
Advanced tools
This is a library for generating thumbnails from video files. It provides a simple API for extracting a single frame or multiple frames from a video and returning them as images.
This is a library for generating thumbnails from video files. It provides a simple API for extracting a single frame or multiple frames from a video and returning them as images.
You can install this package using npm:
npm install browser-video-thumbnail-generator
Here's how you can use this library to generate a thumbnail from a video:
import {VideoThumbnailGenerator} from "browser-video-thumbnail-generator";
const videoSrc = 'path-to-your-video-file';
const generator = new VideoThumbnailGenerator(videoSrc);
generator.getThumbnail()
.then((thumbnail) => {
// Use the thumbnail...
console.log(thumbnail);
// When you're done with the thumbnail, revoke it to free memory
generator.revokeUrls();
});
You can also generate multiple thumbnails at once:
generator.getThumbnails(5)
.then((thumbnails) => {
// Use the thumbnails...
console.log(thumbnails);
// When you're done with the thumbnails, revoke them to free memory`
generator.revokeUrls();`
});
If the Video is not playable the promise will rejected with an error message.
MIT License
Copyright (c) 2018
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
This is a library for generating thumbnails from video files. It provides a simple API for extracting a single frame or multiple frames from a video and returning them as images.
The npm package browser-video-thumbnail-generator receives a total of 63 weekly downloads. As such, browser-video-thumbnail-generator popularity was classified as not popular.
We found that browser-video-thumbnail-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.