You are here

function imageapi_optimize_binaries_pngout in Image Optimize (or ImageAPI Optimize) 7

Pngquant ImageAPI Optimize binary callback.

File

binaries/pngout.inc, line 23
PNGOUT integration.

Code

function imageapi_optimize_binaries_pngout($image, $dst, $cmd, $settings) {
  if ($image->info['mime_type'] == 'image/png') {
    exec("{$cmd} " . escapeshellarg($dst));
  }
}