You are here

function _imageapi_optimize_optimize in Image Optimize (or ImageAPI Optimize) 6

Same name and namespace in other branches
  1. 7 imageapi_optimize.module \_imageapi_optimize_optimize()

Optimizes image with external commands

1 call to _imageapi_optimize_optimize()
imageapi_optimize_image_close in ./imageapi_optimize.module

File

./imageapi_optimize.module, line 195
Image optimize functionalities

Code

function _imageapi_optimize_optimize($image, $dst) {
  $optimize_service = '_imageapi_optimize_service_' . variable_get('imageapi_optimize_service', 'internal');
  $optimize_service($image, $dst);

  // If optimize service fails, there is no problem. Original image is saved.
  return TRUE;
}