### ImageMagick version

6.9.11

### Operating system

Linux

### Operating system, version and so on

Ubuntu 22.04.3

### Description

I have one server with Ubuntu 20.4 and ImageMagick 6.9.10-23.

The newer server is with Ubuntu 22.04.3 LTS and ImageMagick 6.9.11-60.

I upload a SVG file and want to convert it to PNG and resize it.

    convert -format png -density 1200 -resize '255x255>' /folder/test.svg /folder/test.png

With the old server it works flawlessly.

The newer server with ImageMagick 6.9.11-60 throws:

> convert-im6.q16: width or height exceeds limit /tmp/magick-IXLGAi-fnZE2OS1MPM_W1DzbcXjNnrdl @ error/cache.c/OpenPixelCache/3909.
> convert-im6.q16: no images defined /srv/users/hessen/apps/edumaps/public/temp/temp.png @ error/convert.c/ConvertImageCommand/3229.

I have compared both `/etc/ImageMagick-6/policy.xml` files, they have the same settings. Only the old policy.xml states:

    <policy domain="resource" name="area" value="128MB"/>

And the new one states:

    <policy domain="resource" name="area" value="128MP"/>

I changed it to `128MB` but still the same error message.

I also check with `convert -list resource`. The output is for both servers identical, just the old server states `List length: 18.446744EP` and the new server states `List length: unlimited`.

```
Resource limits:
  Width: 16KP
  Height: 16KP
  List length: unlimited
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 64
  Throttle: 0
  Time: unlimited
```

Limits can be seen at the [docs][1]. But I use the same file on both servers.

The SVG file is 744 x 1052 pixels.

How to fix this problem?

<br>

PS: The problem is NOT the policy.xml - see https://stackoverflow.com/questions/77578848/imagemagick-throws-width-or-height-exceeds-when-converting-svg-to-png-with-ver

  [1]: https://imagemagick.org/script/security-policy.php

Imagemagick throws "width or height exceeds" when converting SVG to PNG with version 6.9.11-60 but not with 6.9.10-23
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Imagemagick throws "width or height exceeds" when converting SVG to PNG with version 6.9.11-60 but not with 6.9.10-23
Issue date:

--- start body ---
### ImageMagick version

6.9.11

### Operating system

Linux

### Operating system, version and so on

Ubuntu 22.04.3

### Description

I have one server with Ubuntu 20.4 and ImageMagick 6.9.10-23.

The newer server is with Ubuntu 22.04.3 LTS and ImageMagick 6.9.11-60.

I upload a SVG file and want to convert it to PNG and resize it.

    convert -format png -density 1200 -resize '255x255>' /folder/test.svg /folder/test.png

With the old server it works flawlessly.

The newer server with ImageMagick 6.9.11-60 throws:

> convert-im6.q16: width or height exceeds limit /tmp/magick-IXLGAi-fnZE2OS1MPM_W1DzbcXjNnrdl @ error/cache.c/OpenPixelCache/3909.
> convert-im6.q16: no images defined /srv/users/hessen/apps/edumaps/public/temp/temp.png @ error/convert.c/ConvertImageCommand/3229.

I have compared both `/etc/ImageMagick-6/policy.xml` files, they have the same settings. Only the old policy.xml states:

    <policy domain="resource" name="area" value="128MB"/>

And the new one states:

    <policy domain="resource" name="area" value="128MP"/>

I changed it to `128MB` but still the same error message.

I also check with `convert -list resource`. The output is for both servers identical, just the old server states `List length: 18.446744EP` and the new server states `List length: unlimited`.

```
Resource limits:
  Width: 16KP
  Height: 16KP
  List length: unlimited
  Area: 128MP
  Memory: 256MiB
  Map: 512MiB
  Disk: 1GiB
  File: 768
  Thread: 64
  Throttle: 0
  Time: unlimited
```

Limits can be seen at the [docs][1]. But I use the same file on both servers.

The SVG file is 744 x 1052 pixels.

How to fix this problem?

<br>

PS: The problem is NOT the policy.xml - see https://stackoverflow.com/questions/77578848/imagemagick-throws-width-or-height-exceeds-when-converting-svg-to-png-with-ver

  [1]: https://imagemagick.org/script/security-policy.php

--- end body ---
