function imageapi_optimize_binaries_pngquant in Image Optimize (or ImageAPI Optimize) 7
Pngquant ImageAPI Optimize binary callback.
File
- binaries/
pngquant.inc, line 23 - Pngquant integration.
Code
function imageapi_optimize_binaries_pngquant($image, $dst, $cmd, $settings) {
if ($image->info['mime_type'] == 'image/png') {
exec("{$cmd} --speed=1 --quality=90-99 --force --ext .png " . escapeshellarg($dst));
}
}