Thread:Project:Support desk/Thumbnailing fails on large PNG file/reply

Manual:$wgMaxImageArea might be another reason.

Also, Wikipedia actually uses VIPS for scaling such large images, because of memory limitations that imagemagick has. It's a little under documented unfortunately :(