ImageMagick version
7.1.1-34
Operating system
MacOS
Operating system, version and so on
macOS 13.6.5
Description
Converting certain images to a PICT file will produce files that will crash the system when attempting to view them on a classic Mac OS system. I've reproduced the crash on Macintosh System 7.1, Mac OS 8, and Mac OS 9.
Converting the PICT file back to a png using ImageMagick does not present any issues. I have not yet identified a modern app that presents a problem viewing the bad PICT file ImageMagick produces.
I've attached both the png file that exhibits this bug and the resulting PICT file that will crash a classic Mac.
Steps to Reproduce
- Convert the attached png file to a pict with the following:
magick bad.png bad.pict
- Copy
bad.pict to a system running classic Mac OS and open it in any application that can view PICT files (such as SimpleText)
- System freezes or displays a system error
Images

bad.pict.zip
ImageMagick version
7.1.1-34
Operating system
MacOS
Operating system, version and so on
macOS 13.6.5
Description
Converting certain images to a PICT file will produce files that will crash the system when attempting to view them on a classic Mac OS system. I've reproduced the crash on Macintosh System 7.1, Mac OS 8, and Mac OS 9.
Converting the PICT file back to a png using ImageMagick does not present any issues. I have not yet identified a modern app that presents a problem viewing the bad PICT file ImageMagick produces.
I've attached both the png file that exhibits this bug and the resulting PICT file that will crash a classic Mac.
Steps to Reproduce
magick bad.png bad.pictbad.pictto a system running classic Mac OS and open it in any application that can view PICT files (such as SimpleText)Images
bad.pict.zip