Results 1 to 2 of 2
  1.    #1  
    is there any way to programmatically determine if a picture taken with the device is landscape or portrait after using the filepicker to select an image? thanks in advance!
    My site: Shanerooni, LLC
    Follow me on Twitter
    My apps: GuessWhat? | MazeHunter3D | Small Wonders | PhakePhoney | AutismAware | PicSketcher | Cubix | QuickSolve | QuickSpell | QuickTrace | QuickWhack | QuickSuite | Soccer Shots | Ballooning |
  2. #2  
    Use Prototype's built in Element.Layout methods. You can find the documentation for that here:
    Prototype API documentation | Element.Layout
    Also, any element you call up using $('your_element') or this.controller.get should already be instantiated with all the Element stuff. So you'll just need to see if width is greater that height or not to determine if the picture was taken landscape or portrait.

Posting Permissions