Out of the blue, image upload started giving this message
Fatal error: Out of memory (allocated 30146560) (tried to allocate 8220 bytes) in ...../blog/wp-includes/media.php on line 254
Which is a call to: imagecreatefromstring( file_get_contents( $file ) )
Occasionally the reference is to line 1006, which is a call to: imagecreatetruecolor($width, $height)
However, if I click the 'Save all Changes' button below the message, the file is displayed in Gallery and appears to be fine.
Yesterday this happened with every image, today it's happening with around 50%. I've checked the various files and there's no difference in spec. In fact the same file will sometimes upload with an error and sometimes without.