Commit f39cd467 authored by Nicolas Widart's avatar Nicolas Widart

Adding callback option to fitt

parent 6be29a8a
......@@ -20,6 +20,8 @@ class Fit implements ImageHandlerInterface
{
$options = array_merge($this->defaults, $options);
return $image->fit($options['width'], $options['height'], null, $options['position']);
$callback = isset($options['callback']) ? $options['callback'] : null;
return $image->fit($options['width'], $options['height'], $callback, $options['position']);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment