bonngo Posted September 14, 2007 Share Posted September 14, 2007 Does anyone know of a function or calculation that measures the pixels of an image? Thanks. Link to comment Share on other sites More sharing options...
Fenton Posted September 14, 2007 Share Posted September 14, 2007 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 More sharing options...
David Jondreau Posted September 14, 2007 Share Posted September 14, 2007 Length(containerField) will give you the size in pixels. Link to comment Share on other sites More sharing options...
comment Posted September 14, 2007 Share Posted September 14, 2007 Not exactly: Length() returns the size of the object (i.e. the embedded file) in bytes, which is not the same as pixels, esp. with compressed images. Link to comment Share on other sites More sharing options...
David Jondreau Posted September 14, 2007 Share Posted September 14, 2007 Correct as usual Comment. Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6231 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 accountSign in
Already have an account? Sign in here.
Sign In Now