Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

I have a script that lets the user import a PDF file using "Import Image", I actually import the file not the link. After they have imported this I would like to check the size of the file in the container field because I don't want it to be over 150k. however I can not find any functions or script steps that seem to offer this.

Any help would be greatly appreciated.

Sean

Posted

See the FM Help article "Importing photos from a digital camera or other device (Mac OS)." According to the article, it is possible to get the image size. I'm on XP, not on OS X, so I cannot confirm.

Posted

Sean:

I don't believe you can capture the image size in bytes, but you definitely can get image size in pixels (height and width, plus the dpi count) in which case you can institute a rule based on those items. For example, I have clearly stated in one of my solutions that thumbnails put into the system have to be 2 inches by 2 inches, and 72dpi. FileMaker can test for those parameters (actually =< those parameters) and reject anything outside them, by deleting the item from the container.

-Stanley

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