You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// These tests are flaky as the values ImageMagick will accept
19
16
// are limited by the policy.xml of the system.
17
+
// Also, it appears that some versions of ImageMagick will
18
+
// reject overly large values. e.g. setting RESOURCETYPE_WIDTH
19
+
// to a billion fails. Which is not totally unreasonable.
20
20
21
21
$tests = array(
22
22
Imagick::RESOURCETYPE_AREA => 100000000,
23
-
23
+
24
24
// Set maximum amount of disk space in bytes permitted for use by the pixel cache. When this limit is exceeded, the pixel cache is not be created and an error message is returned.
25
25
Imagick::RESOURCETYPE_DISK => 100,
26
-
27
-
26
+
28
27
//Set maximum number of open pixel cache files. When this limit is exceeded, any subsequent pixels cached to disk are closed and reopened on demand. This behavior permits a large number of images to be accessed simultaneously on disk, but with a speed penalty due to repeated open/close calls.
29
28
Imagick::RESOURCETYPE_FILE => 100,
30
-
29
+
31
30
// Set maximum amount of memory map in bytes to allocate for the pixel cache. When this limit is exceeded, the image pixels are cached to disk
32
-
Imagick::RESOURCETYPE_MAP => 10 * $g,
33
-
31
+
Imagick::RESOURCETYPE_MAP => 123 * $m,
32
+
34
33
// Set maximum amount of memory in bytes to allocate for the pixel cache from the heap. When this limit is exceeded, the image pixels are cached to memory-mapped disk
0 commit comments