The US government has lost its fight to prevent the public from seeing photographs of the bodies of US soldiers killed in action returning from Iraq and Afghanistan in flag-draped coffins.

After battling for a year against a Freedom of Information Act request, the Pentagon released 360 photos of flag-draped coffins yesterday, many of them with the faces and identity badges of soldiers blacked out - a measure officials said was necessary on privacy grounds.