Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
imagemin-jpegoptim
Advanced tools
$ npm install imagemin-jpegoptim
See jpegoptim-bin
's install section for requirements.
import imagemin from 'imagemin';
import imageminJpegoptim from 'imagemin-jpegoptim';
(async () => {
await imagemin(['images/*.jpg'], {
destination: 'build/images',
plugins: [
imageminJpegoptim()
]
});
console.log('Images optimized');
})();
Returns a Promise<Buffer>
.
Type: object
Type: boolean
Default: false
Lossless conversion to progressive.
Type: number
Set maximum image quality factor. (0
-100
).
Type: number | string
Try to optimize file to given size. Target size is specified either in kilo bytes (1
-n
) or as percentage (1%
-99%
).
Type: boolean
Default: true
Strip all markers from output file.
Note: If you want to control what markers are stripped, this must be set to false
.
Type: boolean
Default: true
Strip comment markers from output file.
Type: boolean
Default: true
Strip EXIF markers from output file.
Type: boolean
Default: true
Strip IPTC/Photoshop (APP13) markers from output file.
Type: boolean
Default: true
Strip ICC profile markers from output file.
Type: boolean
Default: true
Strip XMP markers markers from output file.
Type: buffer
Buffer to optimize.
FAQs
Imagemin plugin for jpegoptim
The npm package imagemin-jpegoptim receives a total of 2,058 weekly downloads. As such, imagemin-jpegoptim popularity was classified as popular.
We found that imagemin-jpegoptim demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.