Closed hetao29 closed 1 month ago
Thanks for reporting. There is currently no way to call this method with this library. I will look into this, how this could be solved.
I think the best way is to do this configuration outside of this library for Imagick directly in the policy.xml
.
Something like this.
<policymap>
<policy domain="resource" name="memory" value="256MB"/>
<policy domain="resource" name="map" value="512MB"/>
<policy domain="resource" name="disk" value="1GB"/>
<policy domain="resource" name="file" value="768"/>
<policy domain="resource" name="thread" value="1"/>
</policymap>
See Imagick Documentation for further details.
Describe the bug If the image file is huge(17.4MB, 9952 x 14032), then error : vendor/intervention/image/src/Drivers/AbstractDecoder.php(38) 0:Unable to decode input
Code Example
Environment (please complete the following information):
How to set setresourcelimit https://www.php.net/manual/en/imagick.setresourcelimit.php