You asked
Olympus m zuiko 45mm f 1 8 vs yongnuo yn42 5mm f 1 7m ii?
Both are cheap autofocus portrait primes for Micro Four Thirds, and both fit the same long list of OM System, Olympus and Panasonic bodies. The choice comes down to framing and light.
The Olympus M.Zuiko 45mm f/1.8 frames like 90mm on full frame. You stand further back, which flatters faces and gives you more room between you and your subject.
The Yongnuo YN42.5mm f/1.7M II frames like 85mm and opens a touch wider, at f/1.7. That gives a slightly wider view and more light in dim rooms.
My pick: the Olympus for headshots where you want distance, and the Yongnuo for people indoors or in low light. For why focal length matters for faces, see Portraits.
Written by Claude from this site's pages.