appwrite/app/config/storage/resource_limits.php
2026-01-15 04:08:00 +13:00

8 lines
206 B
PHP

<?php
use Utopia\Image\Image;
use Utopia\System\System;
if (\class_exists('Imagick')) {
Image::setResourceLimit('memory', intval(System::getEnv('_APP_IMAGES_RESOURCE_LIMIT_MEMORY', 1024*1024*64)));
}