Judges keep changing and cases are transferred on rotation basis. Judge is not blaming the wife for what has happened (unless wife has admitted that she had send those pics) but asking her to go for MCD inorder to protect wife's dignity/character. Its ur friends wife who has to decide whats best and she cant be forced by anyone including judge for reconciliation or MCD.
Im keen to know what evidences/proof does ur friend have to technically prove that its his wife who is actually sending these pics to other people. In cyber cases its difficult to prove such things if the opposite party denies. The wife also can hit back with defamation case if things are not proved/ if she is innocent.
The very fact that wife is not even listening to the Judge creates doubts to believe ur friends version OR it could be that the wife is hell bent on destroying her image and character in front of her family and entire world (?????)..........................but then why this route , being a woman she could have used other legal means to extract money/harass the husband