### ImageMagick version

7.1.1-12

### Operating system

MacOS

### Operating system, version and so on

13.4.1 (22F82)

### Description

Converting certain PNG images (screenshots from iPad in this case) to HEIC using the command `magick input.PNG output.heic` results in heic files that only display a black image.

Converting the image using `heif-enc` from libheif v1.16.2 works.

### Steps to Reproduce

- use iPad to view a video
- take screenshot
- transfer to Mac (using Photos app)
- convert screenshot using ImageMagick

### Images

- INPUT:
![iPad screenshot](https://github.com/ImageMagick/ImageMagick/assets/2292035/07b40ca3-ed28-4c35-a03f-d19b093753b6)
 
- OUTPUT:
[iPad screenshot.heic.zip](https://github.com/ImageMagick/ImageMagick/files/11938519/iPad.screenshot.heic.zip)

converting iPad screenshots from png to heic results in all black image
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : converting iPad screenshots from png to heic results in all black image
Issue date:

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

7.1.1-12

### Operating system

MacOS

### Operating system, version and so on

13.4.1 (22F82)

### Description

Converting certain PNG images (screenshots from iPad in this case) to HEIC using the command `magick input.PNG output.heic` results in heic files that only display a black image.

Converting the image using `heif-enc` from libheif v1.16.2 works.

### Steps to Reproduce

- use iPad to view a video
- take screenshot
- transfer to Mac (using Photos app)
- convert screenshot using ImageMagick

### Images

- INPUT:
![iPad screenshot](https://github.com/ImageMagick/ImageMagick/assets/2292035/07b40ca3-ed28-4c35-a03f-d19b093753b6)
 
- OUTPUT:
[iPad screenshot.heic.zip](https://github.com/ImageMagick/ImageMagick/files/11938519/iPad.screenshot.heic.zip)

--- end body ---
