You asked
How does the canon eos 5d mark iv compare with the 6d mark ii for portrait work?
For portraits, the guide's view is that the lens matters far more than the body. Both cameras are full frame, use the Canon EF mount, and have no stabilisation in the body, so the choice between them comes down to resolution and what you already own. The Portraits page makes the broader point: a cheaper body with a good portrait lens beats an expensive body with a kit zoom.
The Canon EOS 5D Mark IV has 30.4 megapixels against the Canon EOS 6D Mark II's 26.2. The extra resolution gives you more room to crop a portrait tighter. The guide calls the 5D IV a workhorse and a good used buy for anyone who already owns EF lenses. The guide doesn't rank the two for portrait handling, so this comparison rests on resolution and that used-buy point.
For the lens, the guide's picks for a portrait-minded Canon owner include the Canon EF 85mm f/1.8 USM as a fast, affordable choice, and the Canon EF 85mm f/1.4L IS USM if you want more background blur and a stabilised lens for slower shutter speeds. Either works on both bodies, since they share a mount. The Canon EF 50mm f/1.8 STM is a cheaper option if you want a more natural field of view.
In short: if you already have EF lenses or want a used body, the 5D IV is the stronger pick. If you're buying new and want the newer body, the 6D II does the same portrait job with fewer megapixels.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.