September 14, 200718 yr Does anyone know of a function or calculation that measures the pixels of an image? Thanks.
September 14, 200718 yr 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.
September 14, 200718 yr 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.
Create an account or sign in to comment