Jump to content

Function to measure pixels


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

Recommended Posts

If it's inserted [x] As reference only, then the dimensions are available from the container.

GetAsText ( container field ) returns something like:

size:640,480

image:Pictures/Brooklin.jpg

imagemac:/Macintosh HD/Users/fej/Documents/FileMaker/My_FM/CONTAINER/ContainerPictures/Pictures/Brooklin.jpg

So you can parse it out of the 1st line, using GetValue().

If the image has been "embedded", ie., not as a reference, then you can't get the dimensions from FileMaker anymore (which is strange, but true). You just get the name.

You would have to Export Field Contents to copy it out as a file again. Then you could use AppleScript to get the dimensions.

Link to comment
Share on other sites

This topic is 6123 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.