kornelski / pngquant

Lossy PNG compressor — pngquant command based on libimagequant library
https://pngquant.org
Other
5.09k stars 476 forks source link

Converting not work on Mac php without any message #414

Open asika32764 opened 6 months ago

asika32764 commented 6 months ago

Example code:

        $r = exec(
            'pngauant image.png',
            $o,
            $rc
        );

        var_dump($r, $o, $rc);

The image was not converted and returns result code as 11:

string(0) ""
array(0) {
}
int(11)

Using Symfony process will result exception with this message:

The process has been signaled with signal "11".

But running pngauant in terminal is work.