### ImageMagick version

7.1.1-2

### Operating system

Linux

### Operating system, version and so on

ubuntu:22.04 (docker)

### Description

When I try to convert a PDF document into images with the following command:

```bash
magick all-in-one.pdf img-%d.jpg
```

I get the following error right after starting the command:

```
magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/746.
```

I also get the same error when using the python API [Wand](https://docs.wand-py.org/en/0.6.11/).

### Steps to Reproduce

1. Install GhostScript and ImageMagick:

```dockerfile
# Remove old ImageMagick and GhostScript versions that are installed by default
RUN apt purge -y *magick* *ghostscript*
RUN apt autopurge -y

#region GhostScript
ARG GHOSTSCRIPT_TAG=1000
ARG GHOSTSCRIPT_VERSION=10.0.0

RUN mkdir -p /tools/ghostscript
WORKDIR /tools/ghostscript

RUN wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$GHOSTSCRIPT_TAG/ghostscript-$GHOSTSCRIPT_VERSION.tar.gz
RUN tar -xvf ghostscript-$GHOSTSCRIPT_VERSION.tar.gz
WORKDIR ghostscript-$GHOSTSCRIPT_VERSION

RUN ./configure
RUN make
RUN make install
#endregion

#region ImageMagick
ARG IMAGEMAGICK_VERSION=7.1.1-2

RUN mkdir -p /tools/imagemagick
WORKDIR /tools/imagemagick

RUN wget -O imagemagick-$IMAGEMAGICK_VERSION.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/$IMAGEMAGICK_VERSION.tar.gz
RUN tar -xvf imagemagick-$IMAGEMAGICK_VERSION.tar.gz
WORKDIR ImageMagick-$IMAGEMAGICK_VERSION

RUN ./configure
RUN make
RUN make install
RUN ldconfig /usr/local/lib
#endregion
```

2. Run the command

```bash
magick all-in-one.pdf img-%d.jpg
```

### Images

[all-in-one.pdf](https://github.com/ImageMagick/ImageMagick/files/10944475/all-in-one.pdf)

Warning: The file has really large pages
PDF conversion: No decode delegate for this image format `'
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : PDF conversion: No decode delegate for this image format `'
Issue date:

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

7.1.1-2

### Operating system

Linux

### Operating system, version and so on

ubuntu:22.04 (docker)

### Description

When I try to convert a PDF document into images with the following command:

```bash
magick all-in-one.pdf img-%d.jpg
```

I get the following error right after starting the command:

```
magick: no decode delegate for this image format `' @ error/constitute.c/ReadImage/746.
```

I also get the same error when using the python API [Wand](https://docs.wand-py.org/en/0.6.11/).

### Steps to Reproduce

1. Install GhostScript and ImageMagick:

```dockerfile
# Remove old ImageMagick and GhostScript versions that are installed by default
RUN apt purge -y *magick* *ghostscript*
RUN apt autopurge -y

#region GhostScript
ARG GHOSTSCRIPT_TAG=1000
ARG GHOSTSCRIPT_VERSION=10.0.0

RUN mkdir -p /tools/ghostscript
WORKDIR /tools/ghostscript

RUN wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs$GHOSTSCRIPT_TAG/ghostscript-$GHOSTSCRIPT_VERSION.tar.gz
RUN tar -xvf ghostscript-$GHOSTSCRIPT_VERSION.tar.gz
WORKDIR ghostscript-$GHOSTSCRIPT_VERSION

RUN ./configure
RUN make
RUN make install
#endregion

#region ImageMagick
ARG IMAGEMAGICK_VERSION=7.1.1-2

RUN mkdir -p /tools/imagemagick
WORKDIR /tools/imagemagick

RUN wget -O imagemagick-$IMAGEMAGICK_VERSION.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/$IMAGEMAGICK_VERSION.tar.gz
RUN tar -xvf imagemagick-$IMAGEMAGICK_VERSION.tar.gz
WORKDIR ImageMagick-$IMAGEMAGICK_VERSION

RUN ./configure
RUN make
RUN make install
RUN ldconfig /usr/local/lib
#endregion
```

2. Run the command

```bash
magick all-in-one.pdf img-%d.jpg
```

### Images

[all-in-one.pdf](https://github.com/ImageMagick/ImageMagick/files/10944475/all-in-one.pdf)

Warning: The file has really large pages
--- end body ---
