Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

finding images that have a bigger height than their width


This topic is 6914 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

Posted

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.

  • 1 month later...
Posted

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

This topic is 6914 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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