ZF-7620: I'm getting wrong image's url while upload image to picasa album
Description
Here is a piece of code to get the url of uploaded image:
$insertedEntry = $gp->insertPhotoEntry($photoEntry, $albumQuery->getQueryUrl()); $mediaContentArray = $insertedEntry->getMediaGroup()->getContent(); $contentUrl = $mediaContentArray[0]->getUrl();
The real path of image is "http://lh3.ggpht.com/_SWzO8sEpZ4Q/SoqCMDfMYjI/AAAAAAAAAI4/c7lyBQuxz4U/s640/Test.jpg" But the $contentUrl is "http://lh3.ggpht.com/_SWzO8sEpZ4Q/SoqCMDfMYjI/AAAAAAAAAI4/c7lyBQuxz4U/Test.jpg"
Seems like these urls have been changed some time ago, because earlier I got real urls with my script.
Comments
Posted by Trevor Johns (tjohns) on 2009-08-18T15:16:32.000+0000
It looks like the only difference between the URLs is the s640, which specifies the size of the image to return.
If you set the imgmax query parameter to "640", I believe it should modify the URL to include this.
See the documentation on the imgmax query parameter here:
http://lh3.ggpht.com/_SWzO8sEpZ4Q/SoqCMDfMYjI/…
Posted by Valery Konstantinov (valerykonstantinov) on 2009-08-19T01:18:46.000+0000
Thanks for your help, Trevor.