Hi Ajith,
Couple of things....
In your code below you setup your query as:
$query = new Zend_Gdata_Photos_UserQuery();
This will only get you a list of albums within a user's account. I don't think
there is full size image data included in that query response.
If you're looking to pull individual images from an PWA album, you need to be
doing...
(Assuming you have a session established already as $client)
$query = new Zend_Gdata_Photos_AlbumQuery();
$photos = new Zend_Gdata_Photos($client);
And then you can follow it up with..
$query->setUser($user);
$query->setAlbumId($albumId);
$albumFeed = $photos->getAlbumFeed($query);
And then process each entry in the feed with..
foreach ($albumFeed as $entry) {
if ($entry instanceof Zend_Gdata_Photos_PhotoEntry) {
// Here's what you really want...
$fullsize = $entry->getMediaGroup()->getContent();
echo "Fullsize url is " . $fullsize[0]->url . "<br />";
// and of course output anything else you need within this loop.
...
...
}
}
Hope this helps.
Lee
---
Lee Evans
ClearTours, Inc.
http://cleartours.com/portfolio
[email protected]
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ajith
Sent: Wednesday, May 05, 2010 3:36 AM
To: Google Picasa Web Albums API
Subject: [PWA API] Re: How to receive the photo
The documentation does not say much on how to use it...
I have an application that shows customers their picasa albums. I need
the customer to be able to transfer images from Picasa to his account
in our application. I am able to do so. However the images that get
transferred are not the original size images and instead are the
scaled down ones.
I know that picasa API does not show the fullsize image in URL and
that we can only show until 1600px. The documentation also states that
we can use "d" with" imgmax" parameter to get the original image. But
I am not able to get it.
I am using PHP Zend GData for accessing the API.
I tried setting the ImgMax value as:
$query = new Zend_Gdata_Photos_UserQuery();
$query->setUser($user);
$query->setImgMax("d");
I also tried setting the imgmax parameter in the URL
$fullsize = $entry->getMediaGroup()->getContent();
$file = (string)$fullsize[0]->getUrl()."?imgmax=d";
If i replace "d" with all the other values mentioned in the API
documentation I get the correct images, for e.g if i set "d" to 200 I
get 200px scaled imaged transferred. i just cannot get the fullsize
file handle to transfer!! :(
Any help is REALLY appreciated!!!
On Apr 29, 11:15 pm, Detlev Schwabe <[email protected]> wrote:
> Check the documentation
> athttp://code.google.com/apis/picasaweb/docs/2.0/reference.html#Parameters
> Especially the section underneath the table i.e. add "imgmax=d" to your
> requests.
>
>
>
>
>
> On Thu, Apr 29, 2010 at 10:35 AM, Sergey <[email protected]> wrote:
> > I have studied example GooglePhotosSample, there is shown how to
> > receive the list of albums,
> > how to receive the list of thumbnails of photos in the selected album,
> > but there it is not shown,
> > how to receive the original of the selected photo... How can I do it?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Picasa Web Albums API" group.
> > To post to this group, send email to
> > [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-picasa-data-api%
> > [email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-picasa-data-api?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
> athttp://groups.google.com/group/google-picasa-data-api?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-picasa-data-api?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Google Picasa Web Albums API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-picasa-data-api?hl=en.