K
K
khodos_dmitry2020-05-02 13:35:19
PHP
khodos_dmitry, 2020-05-02 13:35:19

How to resolve ImagickException: WidthOrHeightExceedsLimit?

Set the following limits:

Imagick::setResourceLimit(Imagick::RESOURCETYPE_AREA, 210000 * 210000);
Imagick::setResourceLimit(Imagick::RESOURCETYPE_DISK, 210000 * 21000);
Imagick::setResourceLimit(Imagick::RESOURCETYPE_MEMORY, 2000000000);
Imagick::setResourceLimit(Imagick::RESOURCETYPE_MAP, 2000000000);

Image dimensions:
22377 by 690

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question