On DreamHost I cannot initialize an Imagick object with an image file (JPG, etc.) greater than ca. 8MB. When I run my site on my localhost, either on XAMPP or WAMP, image files up to 150MB may be initialized in an Imagick object. On DreamHost, it is not a time-out issue, as the routine crashes instantly when my code attempts to create an Imagick object greater than ca. 8MB, yet it does not crash and works perfectly on smaller files. (This is not an upload issue, either, as the files in question are already uploaded to my DreamHost server.)
I’ve corresponded with the folks at ImageMagick, and they suspect it may have to do with a low value for the MAGICK_MEMORY_LIMIT and/or MAGICK_MAP_LIMIT.
I’ve located the policy.xml file for my site at DreamHost in the folder etc/ImageMagick off the root, and that is apparently where those values may be increased. Apparently their default values are 8MB when not explicitly provided in the policy.xml file, which would seem to correlate with the ceiling I keep hitting. I’ve tried to reset those directives to a higher value (by sftp’ing to my site and its upper directories in order to view and edit the policy.xml file) via FileZilla, but I apparently do not have sufficient permission to edit the policy file.
Could this be investigated, or, alternately, could you explain how I can log in such that I can modify the policy.xml file so that my Imagick routines do not hit this memory limt? I’m unclear whether that policy file is specific to my domain or to every domain on the server. (If the former is the case, I’d like to be able to edit the values in question to see if I can eliminate the memory limitation.)