Code: Select all
public function generate_resize_string()
{
$resize = '';
if ($this->config['img_max_height'] > 0 && $this->config['img_max_width'] > 0)
{
$resize = sprintf(
'resize: {width: %d, height: %d, quality: 85, preserve_headers: false},',
(int) $this->config['img_max_width'],
(int) $this->config['img_max_height']
);
}
return $resize;
}
Any help would be highly appreciated. Thanks!