
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
image-and-video-compressor
Advanced tools
Note: This package is meant to be used as a global script to compress images and videos and change their extensions.
image-and-video-compressor
is a Node.js package that enables easy compression of images and videos within a specified folder. It utilizes the powerful sharp
library for image compression and fluent-ffmpeg
for video compression.
npm install -g image-and-video-compressor
imgvidcompress optimise:image --loadFolder='path_to_image_folder' --quality='compression_quality' --output='output_extension'
imgvidcompress optimise:image --loadFolder='/path/to/images' --quality=40 --output='.webp'
imgvidcompress optimise:video --loadFolder='path_to_video_folder' --quality='compression_quality' --output='output_extension'
imgvidcompress optimise:video --loadFolder='/path/to/videos' --quality=30 --output='.mp4'
path_to_image_folder
: Path to the folder containing images.path_to_video_folder
: Path to the folder containing videos.compression_quality
: Quality parameter for compression (between 10 and 100).output_extension
: Extension for the output file after compression.You might need to reinstall ffmpeg on your system.
brew install ffmpeg
sudo apt install ffmpeg
Please follow the instructions at the official ffmpeg website for Windows: Install ffmpeg on Windows
This package wouldn't be possible without the following awesome libraries:
sharp
- High-performance Node.js image processing.fluent-ffmpeg
- A fluent API to FFMPEG.This project is licensed under the MIT License - see the LICENSE file for details.
https://github.com/rohanpoudel2/image_video_compressor
https://www.npmjs.com/package/image-and-video-compressor
https://github.com/rohanpoudel2 https://www.rohanpoudel.com.np
FAQs
Compress Image and Video using Node.js
The npm package image-and-video-compressor receives a total of 0 weekly downloads. As such, image-and-video-compressor popularity was classified as not popular.
We found that image-and-video-compressor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.