Discussions

Ask a Question
Back to all

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//thumb200s.jpg (200 x 200), plus a 64 px image-icon. The source description's id is tps.portrait., and its sources entry points back to the person, not to a memory. GET /platform/tree/persons/{pid}/portrait redirects to the same 200 px file.

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...

  1. Is there a supported way to get a larger version of a person's portrait?
  2. If not, can we read which memory a portrait was cropped from, and its crop rectangle?
  3. 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.