使用php,我加載了這個flickr json feed(是一個例子)並存儲它。從flickr獲取所有圖像大小JSON rss feed
http://api.flickr.com/services/feeds/[email protected]&lang=es-es&format=json&nojsoncallback=1
項飼料得到這個結構:
{
"title": "bridge3",
"link": "http:\/\/www.flickr.com\/photos\/barbbowman\/14098165124\/",
"media": {"m":"http:\/\/farm3.staticflickr.com\/2933\/14098165124_ea43f1f6eb_m.jpg"},
"date_taken": "2013-09-05T15:31:36-08:00",
"description": " <p><a href=\"http:\/\/www.flickr.com\/people\/barbbowman\/\">geek.lady<\/a> public\u00f3 una foto:<\/p> <p><a href=\"http:\/\/www.flickr.com\/photos\/barbbowman\/14098165124\/\" title=\"bridge3\"><img src=\"http:\/\/farm3.staticflickr.com\/2933\/14098165124_ea43f1f6eb_m.jpg\" width=\"240\" height=\"160\" alt=\"bridge3\" \/><\/a><\/p> ",
"published": "2014-05-03T17:49:46Z",
"author": "[email protected] (\"geek.lady\")",
"author_id": "[email protected]",
"tags": ""
},
的問題是(我已經嘗試了很多飼料的例子),所有 媒體:
"media": {"m":"http:\/\/farm3.staticflickr.com\/2933\/14098165124_ea43f1f6eb_m.jpg"},
它只是中等大小,我希望所有可用尺寸顯示在那裏。 這可能嗎?也許可以更改Feed地址參數?
所有可用尺寸?你能更具體一點嗎?你指的是單個圖像的所有可用尺寸或每個JSON行中圖像的大小? – Perumal