Reputation: 3
I have a problem, I am developing a smartphone orientated page, so I want the content the less heavy possible.
In my solution I am using the PodioContact
class to get the user thumbnail link of the image.
But the users image are to heavy for my solution, is there a way to get a smaller sized image ?
Code I am using:
$contact = PodioContact::get_for_user($id);
$image=$contact->image->thumbnail_link:
Upvotes: 0
Views: 69
Reputation: 335
Podio saves user profile avatar images in the following sizes:
tiny
: 16x16small
: 32x32medium
: 80x80large
: 160x160If you append /
and one of those names to the end of the thumbnail_link
value, you should get the image with the appropriate dimensions.
For example, based on the URL I got back for my own thumbnail, I can construct the following sized image URLs:
https://d2cmuesa4snpwn.cloudfront.net/public/263819120/tiny
https://d2cmuesa4snpwn.cloudfront.net/public/263819120/small
https://d2cmuesa4snpwn.cloudfront.net/public/263819120/medium
https://d2cmuesa4snpwn.cloudfront.net/public/263819120/large
Upvotes: 4