This PR implements POST api.gravatar.com/v3/me/avatars.
One big difference between v1 and v3 is that v1 was able to square an image if it wasn't square already. V3 in contrast won't square the image but expect it to be square or return an error otherwise.
The Native image picker on iOS won't always crop a perfect square:
Sometimes will be off by 1 or 2 pixels
It won't square an image in landscape if its completely zoomed out, which makes it not ideal.
On this PR, we solve the problem in the demo app side, by rendering a square image and embedding the original photo in it, which is what the v1 endpoint was doing on the backend.
For example:
On the image picker, we can have this logic internally, or build our own cropper without these issues.
Description
This PR implements
POST api.gravatar.com/v3/me/avatars
.One big difference between v1 and v3 is that v1 was able to square an image if it wasn't square already. V3 in contrast won't square the image but expect it to be square or return an error otherwise.
The Native image picker on iOS won't always crop a perfect square:
On this PR, we solve the problem in the demo app side, by rendering a square image and embedding the original photo in it, which is what the v1 endpoint was doing on the backend.
For example:
On the image picker, we can have this logic internally, or build our own cropper without these issues.
Testing Steps