### ImageMagick version

6.9.11-60

### Operating system

Linux

### Operating system, version and so on

Ubuntu Impish

### Description

When I try to display the image, display crashes

This is the backtrace, seems like there might be an endless recursion:

#5954 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5955 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5956 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5957 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#

I think the problem is that the image is very thin, so when it tries to calculate a thumbnail of the very wide image, it scales the image down, and then the height of the scaled down version gets less than one pixel wide, which then causes the issues.

### Steps to Reproduce

display output.png

### Images


![output](https://github.com/ImageMagick/ImageMagick/assets/6086693/dde53de0-1d74-4bdb-8b72-512ed23055c2)
display crashes on thin images
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : display crashes on thin images
Issue date:

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

6.9.11-60

### Operating system

Linux

### Operating system, version and so on

Ubuntu Impish

### Description

When I try to display the image, display crashes

This is the backtrace, seems like there might be an endless recursion:

#5954 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5955 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5956 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#5957 0x00007ffff72e4c7a in PutSubImage (dpy=0x555555571d90, d=71305664, gc=0x5555555bda50, image=0x555555629c50, req_xoffset=<optimized out>, req_yoffset=<optimized out>, x=0, y=0, req_width=2096928, 
    req_height=1, dest_bits_per_pixel=32, dest_scanline_pad=32) at ../../src/PutImage.c:920
#

I think the problem is that the image is very thin, so when it tries to calculate a thumbnail of the very wide image, it scales the image down, and then the height of the scaled down version gets less than one pixel wide, which then causes the issues.

### Steps to Reproduce

display output.png

### Images


![output](https://github.com/ImageMagick/ImageMagick/assets/6086693/dde53de0-1d74-4bdb-8b72-512ed23055c2)
--- end body ---
