3 messages in com.googlegroups.google-picasa-data-apiProblems with photo orientation.
FromSent OnAttachments
DOH24 Jul 2007 07:53 
Ryan Boyd (Google)24 Jul 2007 08:59 
DOH24 Jul 2007 09:12 
Subject:Problems with photo orientation.
From:DOH (phil@gmail.com)
Date:07/24/2007 07:53:10 AM
List:com.googlegroups.google-picasa-data-api

I have been using the Picasa Data API to download images into a photo gallery in Google Pages. Width and height are used to orientate the photos. However, for some albums these seem to be the wrong way round, and I have to modify the javascript accordingly.

I have been using ...

var height = item.gphoto$height.$t; var width = item.gphoto$width.$t;

var orientation =(height>width ? "vert" : "hor");

However for some albums I have to write ...

var orientation =(height<width ? "vert" : "hor");

...to get the correct orientation of the photos!

Why?

(The "vert" and "hor" are used as classes for the CSS image display.)

example at http://philandjude.googlepages.com/scrollingphotogallery and confused output at http://philandjude.googlepages.com/scrollingphotogallery2 where >needs to be reversed to < .