Me: hey ImageMagick, take in.png, resize it to 600x400, save it to out.png
ImageMagick: sure thing, boss, here you go! exit code 0, stdout <empty>, stderr <empty>
Me: identify out.png
ImageMagick: yup, that’s a PNG image at 600x400!
Me: identify -verbose out.png
ImageMagick: uhhhh <exit code 1>
And this happens randomly (not 100% of the time) for specific inputs. Other image tools can’t open the broken result file either. How the fuck do I even diagnose this?