Hmm I thought it was always applying the transformation to the current
orientation. For example I kept rotating it 90 degrees and watched it spin
full-circle after doing 4 updates.

Can you file a bug in our issue tracker for the -90 problem:

http://code.google.com/p/gdata-issues/issues/list


Cheers,
-Jeff


On Thu, Sep 4, 2008 at 5:27 AM, Joost <[EMAIL PROTECTED]> wrote:

>
> Yes, so I read in the reference guide, but it seems to me that the
> rotation I request, is calculated based on the *original* orientation,
> regardless of any rotation I might have requested since I uploaded the
> image. This makes me want to rotate 180 and 0 degrees as well. (0
> meaning "give the image its original orientation", or "undo all
> rotations I've requested so far"), which do not seem to work.
>
> O, btw, dont try rotating -90 degrees, I can't access my album since I
> tried that, I get a nice "500 Internal Server Error" since, both
> through the API and on the actual picasa webpage...(http://
> picasaweb.google.com/joost.roelandt/Test) Anyway I can restore this?
>
> PS: This is what I did:
>        URL feedUrl = new URL("http://picasaweb.google.com/data/entry/
> api/user/joost.roelandt/albumid/5149800905982714849/photoid/<http://picasaweb.google.com/data/entry/api/user/joost.roelandt/albumid/5149800905982714849/photoid/>
> 5240649723991857874");
>        PhotoEntry photo = picasa.getEntry(feedUrl, PhotoEntry.class);
>        photo.setRotation(-90);
>        photo.update();
>
>
> On Sep 2, 7:36 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]>
> wrote:
> > Well, getRotation() will always be null, because that markup is not
> > included when the photo entry is returned from the server unless the
> > rotation hasn't been applied yet:
> >
> > http://code.google.com/apis/picasaweb/reference.html#gphoto_rotation
> >
> > It's very likely that non-90 degree increments are not supported since
> > otherwise you'd lose the corners of your photo. :)
> >
> > Cheers,
> > -Jeff
> >
> > On Aug 31, 1:36 pm, Joost <[EMAIL PROTECTED]> wrote:
> >
> > > In short: I have the same problem, using the Java API
> > > photo.getRotation() gives me null.
> >
> > > photo.setRotation(x) followed by an update works for x=90 and x=270,
> > > but giving any other value results in no visible change in the photo.
> > > (The version gets updated though)
> > > The returned value for photo.update() once again has
> > > photo.getRotation() == null
> >
> > > Cheers,
> >
> > > ps: the xml that comes fromhttp://
> picasaweb.google.com/data/entry/api/user/joost.roelandt/albumi...
> > > does not contain <gphoto:rotation> anywhere
> >
> > > On Aug 16, 5:21 pm, NitroDesk <[EMAIL PROTECTED]> wrote:
> >
> > > > Must also add, the response did *not* have a position or rotation
> > > > element, but simply eyeballing it, seemed to have all other fieds.
> > > > -g
> >
> > > > On Aug 16, 8:18 am, NitroDesk <[EMAIL PROTECTED]> wrote:
> >
> > > > > Thanks for checking out Jeff,
> > > > > The request i sent is below this message.
> > > > > The photo for this request is the third photo inhttp://
> picasaweb.google.com/gsukumar/BestShots. It was an upright
> > > > > parrot, but after this request, its hanging down.
> > > > > seems to happen for me for every photo i try it on.
> >
> > > > > Is my request wrong by any chance?
> > > > > other properties except sequence number (thats another problem - it
> > > > > doesnt seem to reflect what i set, and goes back to its own value
> > > > > seemingly) are getting updated.
> >
> > > > > thanks!
> > > > > -G
> >
> > > > > PUT
> /data/entry/api/user/gsukumar/albumid/4945409556225916945/photoid/
> > > > > 4945409735047970834/1218899300343000 HTTP/1.1
> > > > > Content-Type: application/atom+xml
> > > > > User-Agent: lh2 GDataGAuth-CS/1.0.0
> > > > > Authorization: <snip>
> > > > > X-Google-Key: <snip>
> > > > > MIME-version: 1.0
> > > > > Host: picasaweb.google.com
> > > > > Content-Length: 1505
> > > > > Expect: 100-continue
> > > > > Connection: Keep-Alive
> >
> > > > > <entry xmlns='http://www.w3.org/2005/Atom'
> > > > >                                 xmlns:media='
> http://search.yahoo.com/
> > > > > mrss/'
> > > > >                                 xmlns:gphoto='http://
> > > > > schemas.google.com/photos/2007'
> > > > >                                 xmlns:gml='
> http://www.opengis.net/gml'
> > > > >                                 xmlns:geo='
> http://www.w3.org/2003/01/
> > > > > geo/wgs84_pos#'
> > > > >                                 xmlns:georss='
> http://www.georss.org/
> > > > > georss'>
> > > > >                               <title>img_0201.jpg</title>
> > > > >                               <gphoto:id>4945409735047970834</
> > > > > gphoto:id>
> > > > >                               <gphoto:albumid>4945409556225916945</
> > > > > gphoto:albumid>
> > > > >                               <summary></summary>
> > > > >                               <description></description>
> > > > > <media:group xmlns:media='http://search.yahoo.com/
> > > > > mrss/'><media:keywords></media:keywords>
> > > > > <media:title>img_0201.jpg</media:title>
> > > > > <media:description></media:description>
> > > > > </media:group><gphoto:position>391696704</gphoto:position>
> > > > >                             <gphoto:rotation>90</gphoto:rotation>
> > > > >                             <gphoto:name>img_0201.jpg</gphoto:name>
> > > > >                             <gphoto:access>private</gphoto:access>
> > > > >                             <gphoto:commentingEnabled>true</
> > > > > gphoto:commentingEnabled>
> > > > >                             <category scheme='http://
> > > > > schemas.google.com/g/2005#kind'
> > > > >                             term='
> http://schemas.google.com/photos/
> > > > > 2007#photo'></category>
> > > > >                         </entry>
> >
> > > > > On Aug 13, 2:23 pm, "Jeff Fisher (Google)" <[EMAIL PROTECTED]
> >
> > > > > wrote:
> >
> > > > > > Hi,
> >
> > > > > > I'm having trouble reproducing this. I just spun a photo around
> twice
> > > > > > (four 90 degree rotations in a row) and each step seemed to work
> as
> > > > > > expected. Can you show the requests you are making that are not
> > > > > > working? Is this for all images or just a particular image? If
> it's
> > > > > > just a particular image can you provide a link to the API entry
> for
> > > > > > it?
> >
> > > > > > Cheers,
> > > > > > -Jeff
> >
> > > > > > On Aug 12, 8:53 am, NitroDesk <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Hi,
> > > > > > > Does anyone know the right way to successively apply rotations
> to an
> > > > > > > image? I find that when sending updates to a photo with Rotate
> set to
> > > > > > > 90 for instance, the image is not rotated correctly, the
> behavior
> > > > > > > seems random.
> > > > > > > However, doing so from the picasaweb UI seems to work fine.
> >
> > > > > > > When geting the properties of the photo, i get the rotation
> field as
> > > > > > > 0, but if i apply a 90degree rotation on it, it does not always
> rotate
> > > > > > > to the left relative to current rendering.
> >
> > > > > > > TIA,
> > > > > > > -g- Hide quoted text -
> >
> > > > > > - Show quoted text -- Hide quoted text -
> >
> > > > > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 Google-Picasa-Data-API@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to