Merge branch '5.2' into 5.3
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / image / adapter / IMemoryAwareImageAdapter.class.php
1 <?php
2 namespace wcf\system\image\adapter;
3
4 /**
5 * A memory aware image adapter is able to determine whether it is
6 * likely able to process an image within the process' memory limit.
7 *
8 * @author Tim Duesterhus
9 * @copyright 2001-2020 WoltLab GmbH
10 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
11 * @package WoltLabSuite\Core\System\Image\Adapter
12 * @since 5.3
13 */
14 interface IMemoryAwareImageAdapter extends IImageAdapter {
15 /**
16 * Returns whether it is believed that sufficient memory
17 * is available to process an image with the given properties.
18 *
19 * @param integer $width
20 * @param integer $height
21 * @param string $mimeType
22 * @return boolean
23 */
24 public function checkMemoryLimit($width, $height, $mimeType);
25 }