Questions tagged [pngquant]
39 questions
29
votes
5 answers
Error with npm update: pngquant binary does not seem to work correctly
I am getting the following error with my npm update command:
> pngquant-bin@4.0.0 postinstall /var/www/pp/20180315202846/node_modules/pngquant-bin
> node lib/install.js
⚠ The `/var/www/pp/20180315202846/node_modules/pngquant-bin/vendor/pngquant`…

wawanopoulos
- 9,614
- 31
- 111
- 166
11
votes
6 answers
Module Build Error: pngquant ENOENT - webpack build succeeds on local OS X, fails on AWS Ubuntu 16.04 server
I've tried to find the answer all over, but it just doesn't seem to be out there yet.
I'm using React-Toolbox, React-Bootstrap and some custom scss. On my local machine, the build works fine. When I spin up an AWS Ubuntu server and do a basic node…

Dan Molitor
- 131
- 1
- 7
7
votes
1 answer
Gulp Imagemin not finishing
This is my Gulp task:
//Image Optimization
gulp.task( 'imagemin', function () {
return gulp.src( imageDir + '**/*.{png,jpg,JPG,svg}' )
.pipe( imagemin( {
progressive: true,
use: [
…

Marten Zander
- 2,385
- 3
- 17
- 32
5
votes
3 answers
error pngquant-bin with npm install
I installing npm and all works until this error, I am trying to discover what its causing this problem but no success. After the installation I tried to run 'npm run dev' but with errors too. I guess because the problem with the npm install at all.…

Luciano
- 358
- 1
- 5
- 17
5
votes
1 answer
pngquant PHP example isn't working
I am trying to use the pngquant compression algorithm to compress PNG images on the fly using WAMP. They provide a PHP example that (I think) is supposed to use the command line binary for Windows, which I have put in the system32 folder and I can…

André Casal
- 1,012
- 1
- 11
- 25
4
votes
2 answers
File size increase for pngquant output when using PIL
If I compress and image with pngquant, and then read and write out with PIL, I see file size increase significantly (sometimes by up to 2x). Anyone have any tips here? I suspect it may have to do with some PIL flags, but not familiar enough with it.

JPC
- 1,891
- 13
- 29
3
votes
1 answer
PHP shell_exec returns empty string after a while
I made a Symfony console command which uses pngquant to process and compress a long list of images. The images are read from a CSV file.
The batch is working fine until the end in local environment but in the stage environment it works for about 5…

StockBreak
- 2,857
- 1
- 35
- 61
3
votes
1 answer
How to perform batch PNG compression with PNGQUANT and save all converted images with their source names to another folder?
I want to compress all png image files existing in a directory and save all these converted/compressed image files into a different folder with their original image names using pngquant:
Syntax for batch compression:
pngquant.exe --quality=40-55…
user3751794
3
votes
2 answers
Compile a static version of pngquant
I'm trying to create a statically linked version of pngquant in Oracle Linux Server release 7.1. I've compiled the static version of zlib and the static version of libpng.
Then, when I configure pngquant, I always get the information that it will be…

Zé Byte
- 199
- 1
- 12
2
votes
0 answers
Error with pngquant when php artisan nova:tool
I'm using Laravel Nova. So, today I have been stuck with an error.
After running this command php artisan nova:tool vendor/name.
I got a prompt:
Would you like to install the tool's NPM dependencies? (yes/no) [yes].
After "yes", npm started working,…

GetUnstuck
- 91
- 1
- 8
2
votes
1 answer
gatsby new fails with pngquant related error
[SOLVED]
When I try to create a new gatsby site (with gatsby new or starter) or try to install the dependencies for an existing one with yarn, I always get the following error:
⚠ write EPROTO 4403060160:error:1408F10B:SSL …

Pavel Shevtsov
- 31
- 4
1
vote
1 answer
Resolve: "Unknown system error -86" error when installing imagemin-pngquant/imagemin-optipng on Apple Silicon (M1)
Here's the error:
npm ERR! code 1
npm ERR! path /[...]/node_modules/pngquant-bin
npm ERR! command failed
npm ERR! command sh -c node lib/install.js
npm ERR! ⚠ spawn Unknown system error -86
npm ERR! ⚠ pngquant pre-build test failed
npm ERR! ℹ…

Lindauson
- 2,963
- 1
- 30
- 33
1
vote
0 answers
How to choose correct version of gatsby-plugin-sharp when using FreeBSD v11.3 server?
I'm trying to install and build Gatsby app on the FreeBSD v11.3 server. My gatsby app use gatsby-plugin-sharp and gatsby-transformer-sharp and I think those plugins cause the error.
This was the first error I got during npm install:
ERR! sharp…

Mimoid
- 722
- 1
- 10
- 25
1
vote
0 answers
Nuxtjs /node_modules/pngquant-bin/vendor/pngquant --version FATAL: kernel too old
I am trying to run : yarn install in my nuxt app
after it finish he show me this error:
Command failed: /home/theprjk6/public_html/node_modules/pngquant-bin/vendor/pngquant --version
FATAL: kernel too old
⚠ pngquant pre-build test failed
…

Ghyath Darwish
- 2,614
- 4
- 15
- 31
1
vote
1 answer
Getting pngquant error when I try to install Laravel on cPanel
I have little experience with cPanel but I am required to setup a Laravel application on cpanel. I am really struggling to solve this problem.
Here are the steps I am taking:
Git Checkout the repository
Setup the .env
composer install
composer…

Kevin Pimentel
- 2,056
- 3
- 22
- 50