You are here

function imageapi_optimize_binaries_jfifremove in Image Optimize (or ImageAPI Optimize) 7

Jfifremove ImageAPI Optimize binary callback.

File

binaries/jfifremove.inc, line 23
Jfifremove integration.

Code

function imageapi_optimize_binaries_jfifremove($image, $dst, $cmd, $settings) {
  if ($image->info['mime_type'] == 'image/jpeg') {
    _imageapi_optimize_exec("{$cmd} < " . escapeshellarg($dst), $dst);
  }
}