Reduced Imagick memory consumption
This commit is contained in:
parent
96769f52cf
commit
0e4365795b
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
namespace Szurubooru\Services\ImageManipulation;
|
namespace Szurubooru\Services\ImageManipulation;
|
||||||
|
|
||||||
|
\Imagick::setResourceLimit(\Imagick::RESOURCETYPE_MEMORY, 33554432);
|
||||||
|
\Imagick::setResourceLimit(\Imagick::RESOURCETYPE_MAP, 33554432);
|
||||||
|
|
||||||
class ImagickImageManipulator implements IImageManipulator
|
class ImagickImageManipulator implements IImageManipulator
|
||||||
{
|
{
|
||||||
public function loadFromBuffer($source)
|
public function loadFromBuffer($source)
|
||||||
|
|
Loading…
Reference in a new issue