Get image properties (dimensions) in native offline
Hi, I would like to determine whether an image is taken in landscape or in portrait mode in a native offline app, since the user is only allowed to take landscape pictures. A way to do so would be to check if pixel width is larger than pixel height, but for this I need the image dimensions. I am aware of the GetImageDimensions Java action in CommunityCommons, but Java actions can not be triggered from a nanoflow. Is there any way to retrieve this information in a native app?
Kurt Rosa Bian
In the native mobile resources you will find the camera action ‘TakePictureAdvance’. This action returns an ImageMetaData object that contains the dimensions of the image. You can save this information with the picure object if you wish to use it later on.