I have a script I made which works a vast majority of the time. The script allows for multiple users to gather and upload images which changes a main image. Very occassionally (two times in 3 or 4 days of testing), the script will stop working because when GD2 tries to load the main image it gets "Fatal error: imagecreatefrompng(): gd-png: fatal libpng error: IDAT: CRC error in..." Users are no longer able to change the image by uploading their own, and the main image is unrenderable when you try to view it. I know CRC stands for Cyclic Redundancy Check and looked up specifications on PNG's format and it looks like there is a chuck which is a CRC to verify the images data.
Anyway, I did some googling to see if there was a known issue and fix for the problem and I always run into dead ends. Either my googling skills need to be sharpened or this is an unavoidable and catastrophic error. Since I doubt the latter is true, can anyone shed some light on this issue or give me some advice?
The best advice I have gotten (it was my own suggestion) so far is to not save the main image as a PNG - but I wanted to check in first.