It was jpeg. I reverted to XnViewMP 1.6.5 and it worked fine. So I've just reinstalled 1.7.0 and that now works too.
I haven't changed any of my settings.
No idea what happened. I suggest closing this report.
If it happens again I'll try investigating further.
Mark