Wrong units for ImageMagick area limit in policy.xml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
imagemagick (Debian) |
Fix Released
|
Undecided
|
broucaries | ||
imagemagick (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug originates from Heroku stack images: https:/
The imagemagick area limits should be pixels and not bytes. The `policy.xml` template uses
<policy domain="resource" name="area" value="128MB"/>
but should actually be
<policy domain="resource" name="area" value="128MP"/>
The consequence of this bug is major confusion for people who think that area can only be 128 megabyte but actually can be 1 gigabyte with this limit.
People relying on the output of `identify -list resource` will be confused as well at least, because it will print `Area: 128000000P` if you configured `128MB`.
It's hard to find out, what units we should use for area resource limits because official ImageMagick documentation contradicts itself:
* [ImageMagick _PixelCache_ architecture](https:/
* [ImageMagick resource limits (environment variables)](https:/
* [`policy.xml` example in source code](https:/
So without reading code, I simply trust in the format used by `identify -list resource`.
Fixed in 6.9.11.57