Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

finding images that have a bigger height than their width

Featured Replies

Hi guys,

Ok so i have a calculation field called imagedetails that looks at image using the getasText function and this is what is coming up for it.

size:184,245

image:6028.jpg

imagemac:/6028.jpg

So what i want to do is do a search for images that have a bigger height than their width and visa versa.

I cant get my head about getting the substring to work as the image height or width may have more that 3 digits.

Try something like:

Let ( [

text = GetAsText ( yourContainerField )

colon = Position ( text ; ":" ; 1 ; 1 ) ;

comma = Position ( text ; "," ; 1 ; 1 ) ;

end = Position ( text ; ¶ ; 1 ; 1 ) ;

h = GetAsNumber ( Middle ( text ; colon + 1 ; comma - colon - 1 ) ) ;

v = GetAsNumber ( Middle ( text ; comma + 1 ; end - comma - 1 ) )

] ;

h > v

)

Set the result to Number. This will return 1 for landscape-oriented pictures, and 0 for portrait type.

  • Author

Thank you very much that worked a charm...

Dusty

  • 1 month later...

Hi

How did you get that image details ?

When I GetAsText(container) it only gives me the path ?

If the image is stored as a reference only, you will get that information.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.