ISPORTRAIT

Returns true if the photo or video is in portrait mode.

Description

Returns true if the photo or video is in portrait mode. This is intended to be used inside of the add-photo and add-video events and operate on the parameter passed to the event handler.

Parameters

value Object (required) - The value of the photo or video

Examples

ON('add-photo', 'photos', function (event) {
   if (ISPORTRAIT(event.value)) {
     ALERT('Photo is portrait!');
   }
});