### ImageMagick version

6.9.12-93

### Operating system

Linux

### Operating system, version and so on

ALT Workstation 10.1, ALT Server 10.1

### Description

According to the ImageMagick's [documentation](https://imagemagick.org/script/formats.php), application works with gif format:
GIF 	CompuServe Graphics Interchange Format 	8-bit RGB PseudoColor with up to 256 palette entries. Specify the format GIF87 to write the older version 87a of the format. Use -transparent-color to specify the GIF transparent color (e.g. -transparent-color wheat).

But ImageMagick's bihaviour is different with different gif files

### Steps to Reproduce

1. Open different gif files (without animation, with animation and with 3 colors, with animation and with 256 colors)

Results:
1. Gif file without animation is closed after several seconds
2. Gif file with animation and with 3 colors is closed after animation. The file is displayed correctly
3. Gif file with animation and with 256 colors is closed after animation. The file is displayed incorrect

### Images
Gif files for reproducing:
![1](https://github.com/ImageMagick/ImageMagick/assets/143399145/dde866df-4023-4947-a58f-d969e9a81ce4)
![file](https://github.com/ImageMagick/ImageMagick/assets/143399145/81d85e6b-ab8a-4db9-b15d-55d5bcde3c08)
![2](https://github.com/ImageMagick/ImageMagick/assets/143399145/40ca8d43-e3b4-4c59-839e-89c8d7ac55a1)






Unexpected behaviour of ImageMagick when open gif file
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Unexpected behaviour of ImageMagick when open gif file
Issue date:

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

6.9.12-93

### Operating system

Linux

### Operating system, version and so on

ALT Workstation 10.1, ALT Server 10.1

### Description

According to the ImageMagick's [documentation](https://imagemagick.org/script/formats.php), application works with gif format:
GIF 	CompuServe Graphics Interchange Format 	8-bit RGB PseudoColor with up to 256 palette entries. Specify the format GIF87 to write the older version 87a of the format. Use -transparent-color to specify the GIF transparent color (e.g. -transparent-color wheat).

But ImageMagick's bihaviour is different with different gif files

### Steps to Reproduce

1. Open different gif files (without animation, with animation and with 3 colors, with animation and with 256 colors)

Results:
1. Gif file without animation is closed after several seconds
2. Gif file with animation and with 3 colors is closed after animation. The file is displayed correctly
3. Gif file with animation and with 256 colors is closed after animation. The file is displayed incorrect

### Images
Gif files for reproducing:
![1](https://github.com/ImageMagick/ImageMagick/assets/143399145/dde866df-4023-4947-a58f-d969e9a81ce4)
![file](https://github.com/ImageMagick/ImageMagick/assets/143399145/81d85e6b-ab8a-4db9-b15d-55d5bcde3c08)
![2](https://github.com/ImageMagick/ImageMagick/assets/143399145/40ca8d43-e3b4-4c59-839e-89c8d7ac55a1)






--- end body ---

None