You are here

function _drush_imageapi_optimize_batch_finished in Image Optimize (or ImageAPI Optimize) 7.2

Batch finished callback for optimizing images.

1 string reference to '_drush_imageapi_optimize_batch_finished'
drush_imageapi_optimize in ./imageapi_optimize.drush.inc
The ImageAPI Optimize Drush command.

File

./imageapi_optimize.drush.inc, line 171

Code

function _drush_imageapi_optimize_batch_finished($success, $results, $operations) {
  drush_log(dt('Files optimized, savings made: !total_savings - @percentage_savings%', array(
    '!total_savings' => format_size($results['before'] - $results['after']),
    '@percentage_savings' => round(($results['before'] - $results['after']) / $results['before'] * 100, 1),
  )), 'ok');
}