Merge lp:~robru/friends/no-avatar-downsample into lp:friends
Proposed by
Robert Bruce Park
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 150 | ||||
Proposed branch: | lp:~robru/friends/no-avatar-downsample | ||||
Merge into: | lp:friends | ||||
Diff against target: |
187 lines (+38/-16) 6 files modified
friends/protocols/facebook.py (+1/-1) friends/tests/test_avatars.py (+5/-1) friends/tests/test_facebook.py (+8/-4) friends/tests/test_flickr.py (+3/-2) friends/tests/test_twitter.py (+13/-5) friends/utils/avatar.py (+8/-3) |
||||
To merge this branch: | bzr merge lp:~robru/friends/no-avatar-downsample | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Needs Fixing | ||
MichaĆ Sawicz | Pending | ||
Review via email: mp+150647@code.launchpad.net |
Description of the change
Remove avatar downsampling code; always cache the largest possible image.
To post a comment you must log in.
We should also bump up the size of the original, for example with facebook we currently request type=large, which returns a 200x200 avatar. You can specify width and height requested and facebook will fetch the image as large as possible up to the requested size. For example:
This returns a 200x200 avatar: /graph. facebook. com/shaverm/ picture? type=large
https:/
This returns a 256x256 avatar: /graph. facebook. com/shaverm/ picture? width=840& height= 840
https:/
For reference: /developers. facebook. com/docs/ reference/ api/using- pictures/
https:/