### ImageMagick version

7.1.1-23

### Operating system

Other (enter below)

### Operating system, version and so on

NetBSD/amd64 9.3

### Description

## What I tried

I updated from ImageMagick and PerlMagick 7.1.1-21 to 7.1.1-23 on my development machine running macOS, saw no breakage on my staged websites, then performed the same update on my production server running NetBSD.

I performed the updates on both platforms the same way I always do, which is to install the latest versions from pkgsrc (here's the [p5-PerlMagick package's commit history](https://github.com/NetBSD/pkgsrc/commits/trunk/graphics/p5-PerlMagick)).

## What I expected to happen

I anticipated no breakage on my production websites, given the changelog entries and the uneventful package updates on the macOS side.

## What actually happened

In production, I saw image rendering errors from my web CMS (ikiwiki), of several kinds:

- `failed to determine size`: all `.jpg` or `.JPG`
- `failed to get dimensions`: some `.gif`, some `.jpg`, some `.JPG`
- `failed to read`: all `.png`, followed by the message `Exception 425: unable to read image data png:/correct/looking/path/to/file.png` from `error/constitute.c/ReadImage/991` 

The site contains approximately 200 images and I see about 160 errors.

## What confuses me

What could account for PerlMagick behaving this differently on NetBSD from 7.1.1-21 to 7.1.1-23, especially when it behaves the same -- as we would all expect, presumably! -- on macOS between those same versions?

Has ikiwiki perhaps been invoking PerlMagick incorrectly for a while, and got lucky until just now? Here's the [`img` plugin code](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=IkiWiki/Plugin/img.pm;h=b85824345ed6e1634cf6f43b08ac3887a56117d4;hb=HEAD) (and [end-user docs](http://ikiwiki.info/ikiwiki/directive/img/)) where the errors are coming from.

I know this is far from a minimal reproducer. How would you suggest I try to narrow this down?

### Steps to Reproduce

1. On NetBSD, run `ikiwiki --setup /path/to/mysite.setup`
2. In a browser, observe e.g. `[[!img Error: failed to determine size of image images/cokebabies.jpg]]` where the rendered image should be

### Images

_No response_
Perl API change after 7.1.1-21?
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Perl API change after 7.1.1-21?
Issue date:

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

7.1.1-23

### Operating system

Other (enter below)

### Operating system, version and so on

NetBSD/amd64 9.3

### Description

## What I tried

I updated from ImageMagick and PerlMagick 7.1.1-21 to 7.1.1-23 on my development machine running macOS, saw no breakage on my staged websites, then performed the same update on my production server running NetBSD.

I performed the updates on both platforms the same way I always do, which is to install the latest versions from pkgsrc (here's the [p5-PerlMagick package's commit history](https://github.com/NetBSD/pkgsrc/commits/trunk/graphics/p5-PerlMagick)).

## What I expected to happen

I anticipated no breakage on my production websites, given the changelog entries and the uneventful package updates on the macOS side.

## What actually happened

In production, I saw image rendering errors from my web CMS (ikiwiki), of several kinds:

- `failed to determine size`: all `.jpg` or `.JPG`
- `failed to get dimensions`: some `.gif`, some `.jpg`, some `.JPG`
- `failed to read`: all `.png`, followed by the message `Exception 425: unable to read image data png:/correct/looking/path/to/file.png` from `error/constitute.c/ReadImage/991` 

The site contains approximately 200 images and I see about 160 errors.

## What confuses me

What could account for PerlMagick behaving this differently on NetBSD from 7.1.1-21 to 7.1.1-23, especially when it behaves the same -- as we would all expect, presumably! -- on macOS between those same versions?

Has ikiwiki perhaps been invoking PerlMagick incorrectly for a while, and got lucky until just now? Here's the [`img` plugin code](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=IkiWiki/Plugin/img.pm;h=b85824345ed6e1634cf6f43b08ac3887a56117d4;hb=HEAD) (and [end-user docs](http://ikiwiki.info/ikiwiki/directive/img/)) where the errors are coming from.

I know this is far from a minimal reproducer. How would you suggest I try to narrow this down?

### Steps to Reproduce

1. On NetBSD, run `ikiwiki --setup /path/to/mysite.setup`
2. In a browser, observe e.g. `[[!img Error: failed to determine size of image images/cokebabies.jpg]]` where the rendered image should be

### Images

_No response_
--- end body ---

None