![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
china-imagemin-optipng
Advanced tools
OptiPNG imagemin plugin, 同步官方代码,解决国内下载jpegtran-bin,optipng-bin依赖的源码慢的问题
optipng image-min plugin
$ npm install --save imagemin-optipng
const imagemin = require('imagemin');
const imageminOptipng = require('imagemin-optipng');
imagemin(['images/*.png'], 'build/images', {use: [imageminOptipng()]}).then(() => {
console.log('Images optimized');
});
Returns a Promise
for a Buffer
.
Type: number
Default: 3
Select an optimization level between 0
and 7
.
The optimization level 0 enables a set of optimization operations that require minimal effort. There will be no changes to image attributes like bit depth or color type, and no recompression of existing IDAT datastreams. The optimization level 1 enables a single IDAT compression trial. The trial chosen is what. OptiPNG thinks it’s probably the most effective. The optimization levels 2 and higher enable multiple IDAT compression trials; the higher the level, the more trials.
Level and trials:
Type: boolean
Default: true
Apply bit depth reduction.
Type: boolean
Default: true
Apply color type reduction.
Type: boolean
Default: true
Apply palette reduction.
Type: Buffer
Buffer to optimize.
MIT © imagemin
FAQs
OptiPNG imagemin plugin, 同步官方代码,解决国内下载jpegtran-bin,optipng-bin依赖的源码慢的问题
The npm package china-imagemin-optipng receives a total of 0 weekly downloads. As such, china-imagemin-optipng popularity was classified as not popular.
We found that china-imagemin-optipng demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.