Online publication of photographs of a murder trial defendant ‘posing with a gun’ risked prejudicing the trial and, therefore, broke contempt of court rules, judges have ruled.

The Sun and The Daily Mail, which published the images, have been found guilty of breaching the 1982 Contempt of Court Act, according to Press Association reports.

Judges deemed that publication of the pictures in relation to the trial of Ryan Ward in September 2009 jeopardised the case.

Ryan was convicted of murdering car mechanic Craig Wass, at a trial in Sheffield.

It is understood that this is the first case of its kind.