The OneSearchIndex endpoint (documentation here) can be used with parameters to retrieve details of a charity registered on the JustGiving platform.
If you're calling this endpoint and using the image address in the charity Logo field to retrieve the charity's logo for your application, you may experience the logo image being pixelated and low-resolution.
To resolve this, please see the below:
The Logo field in the OneSearchIndex endpoint https://api.justgiving.com/docs/resources/v1/OneSearch/OneSearchIndex by default has a template size parameter in the image URL which resizes the charity logo to an image size of 120x120 pixels which is more of a thumbnail size.
See the full image URL pulled from the Logo field in the OneSearch API call for the charity Tommy's:
https://images.justgiving.com/image/f369b026-ede4-4beb-940b-65602510e174.jpg?template=size120x120&imagetype=charitybrandinglogo&trymigrate=true
If you're retrieving and using the full image URL with the 'template=size120x120' size parameter, this will cause the logo image to be low-resolution.
If after retrieving the Logo field image URL, you drop any additional parameters including "?" in the image URL, that will give you the full res version of the charity logo that you can then size accordingly in your application.
See screenshot below for image URL https://images.justgiving.com/image/f369b026-ede4-4beb-940b-65602510e174.jpg showing what this looks like:
0 Comments