Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
获取大小的用户图像[Podio API]_Api_Podio - Fatal编程技术网

获取大小的用户图像[Podio API]

获取大小的用户图像[Podio API],api,podio,Api,Podio,我有一个问题,我正在开发一个面向智能手机的页面,所以我希望内容尽可能轻一些。 在我的解决方案中,我使用PodioContact类获取图像的用户缩略图链接。 但是对于我的解决方案来说,用户的图像太重了,有没有办法获得更小尺寸的图像 我使用的代码: $contact = PodioContact::get_for_user($id); $image=$contact->image->thumbnail_link: Podio以以下大小保存用户配置文件化身图像: tiny:16x16

我有一个问题,我正在开发一个面向智能手机的页面,所以我希望内容尽可能轻一些。 在我的解决方案中,我使用
PodioContact
类获取图像的用户缩略图链接。 但是对于我的解决方案来说,用户的图像太重了,有没有办法获得更小尺寸的图像

我使用的代码:

$contact = PodioContact::get_for_user($id); 
$image=$contact->image->thumbnail_link:

Podio以以下大小保存用户配置文件化身图像:

  • tiny
    :16x16
  • 小型
    :32x32
  • 中等
    :80x80
  • 大型
    :160x160
如果将
/
和其中一个名称附加到
缩略图链接
值的末尾,则应获得具有适当尺寸的图像

例如,根据我为自己的缩略图返回的URL,我可以构建以下大小的图像URL:

  • 16x16:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/tiny
  • 32x32:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/small
  • 80x80:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/medium
  • 160x160:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/large

Podio以以下大小保存用户配置文件化身图像:

  • tiny
    :16x16
  • 小型
    :32x32
  • 中等
    :80x80
  • 大型
    :160x160
如果将
/
和其中一个名称附加到
缩略图链接
值的末尾,则应获得具有适当尺寸的图像

例如,根据我为自己的缩略图返回的URL,我可以构建以下大小的图像URL:

  • 16x16:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/tiny
  • 32x32:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/small
  • 80x80:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/medium
  • 160x160:
    https://d2cmuesa4snpwn.cloudfront.net/public/263819120/large