Discussions
Person portraits only available at 200 px, though the docs show a link to the source memory
Is there a way to get the full-resolution of the person "profile" photos or is it limited to 200 x 200px? The docs suggest there is, but it's not working that way when we tried.
Calling GET /platform/tree/persons/{pid}/portraits (Accept: application/x-gedcomx-v1+json), every portrait we checked returns links.image and links.image-thumbnail both pointing to https://tree-portraits-pgp.familysearchcdn.org/
The Read Person Portraits example in the docs shows links.image pointing to the memory's dist.jpg and sources pointing to the memory. Update Person Portraits shows a portrait created from a memory plus a RectangleRegion.
So...
- Is there a supported way to get a larger version of a person's portrait?
- If not, can we read which memory a portrait was cropped from, and its crop rectangle?
- Is the Read Person Portraits example out of date?
We've made a workaround by finding the source photo by comparing the portrait with each of the person's photo memories, but a direct link would be much cleaner and less resource-intensive.