我正在使用Picasa RSS提要,没有问题,但我无法获得原来的大尺寸的图像,我上传。当通过Picasa上传时,我特意选择上传“原始大小”(相当大)。提要URL只指向较小的图像。如何从picasa获得原始的大图像?
我可以通过查看Picasa网站上的图片来破解URL,所以这是我想要的照片的一个例子:https://lh3.googleusercontent.com/-yam9QV2NG40/ULKIMTKvQzI/AAAAAAAAAA4/ownr930MvGg/s2048/Blasket%2520Donkeys.jpg
我知道您可以用URL中的s(粗体位)更改上面的URL。
下面是我的coldfusion代码来获取和使用提要:
<cffeed name="picassa_RSS"source="https://picasaweb.google.com/data/feed/base/user/104080781603408027307/albumid/5817402728494564577?alt=rss&kind=photo&hl=en_US">
<cfoutput>
<!--- Loop through picasa RSS feed and output thumbnails --->
<cfloop array="#picassa_RSS.item#" index="i">
<img alt="img" src="#i.group.thumbnail[2].url#" class="picture">
</cfloop>
</cfoutput>有什么想法吗?
谢谢。
发布于 2012-12-02 19:23:11
好的,我自己找到了答案。参见此处的imgmax参数:https://developers.google.com/picasa-web/docs/2.0/reference#Parameters
基本上,您可以将&imgmax=1600添加到提要URL的末尾,以获得最大的大小。
发布于 2014-04-15 18:03:09
添加&imgmax=2048到url为我工作,因为我的图像是1920年的宽度。
https://stackoverflow.com/questions/13672701
复制相似问题