modifier.image_cache.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 
12 /**
13  * Output the cache location of the given image and width
14  *
15  * Example:
16  * @code
17  * <img src={$image|image_cache:800}">
18  * @endcode
19  *
20  * @param $image The path to the image
21  * @param $width
22  * @return String
23  */
25 
26 function smarty_modifier_image_cache($image, $width) {
27  return ImageUtil::getCacheLocation($image, $width);
28 }
29 ?>
ImageUtil provides support for image handling.
Definition: ImageUtil.php:29