imagemin-optipng icon indicating copy to clipboard operation
imagemin-optipng copied to clipboard

optipng plugin for imagemin

Results 11 imagemin-optipng issues
Sort by recently updated
recently updated
newest added

npm WARN deprecated [[email protected]](https://blog.csdn.net/liuhao9999/article/details/[email protected]): Please upgrade to version 7 or higher.

This PR adds the option to preserve the image metadata. More explanation https://manpages.debian.org/stretch/optipng/optipng.1.en.html

I basically did the same changes as this PR https://github.com/imagemin/imagemin-gifsicle/pull/53 to migrate CJS to ESM 😬 It's the last package among https://github.com/sindresorhus/gulp-imagemin/blob/main/package.json#L57-L60 that is still using CJS ``` "optionalDependencies": {...

On an Apple Silicon Mac: $ npm install imagemin-optipng --save-dev ... Undefined symbols for architecture arm64: npm ERR! "_png_init_filter_functions_neon", referenced from: npm ERR! _png_read_filter_row in libpng.a(pngrutil.o) npm ERR! ld: symbol(s)...

On arm this package fails executing even if optipng is installed in the system.

have a js file (demo.js) : ``` const imagemin = require('imagemin'); const imageminOptipng = require('imagemin-optipng'); (async () => { await imagemin(['img/*.png'], 'build/img', { use: [ imageminOptipng() ] }); console.log('Images optimized!');...

I have issue in Travis build: Error: spawn /app/node_modules/optipng-bin/vendor/optipng ENOENT at exports._errnoException (util.js:1036:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_process.js:359:16) at _combinedTickCallback (internal/process/next_tick.js:74:11) at process._tickCallback (internal/process/next_tick.js:98:9) The command '/bin/sh -c gulp'...

Is there any way to make it use multiple threads, so that multiple trials are paralleled?

https://github.com/imagemin/optipng-bin says "You probably want `imagemin-optipng` instead" but I don't see anything that shows this can be used as CLI utility.... why should we want to use this?