Skip 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.

Function to measure pixels

Featured Replies

Does anyone know of a function or calculation that measures the pixels of an image?

Thanks.

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.

Length(containerField) will give you the size in pixels.

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.

Correct as usual Comment.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.