Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

On some of my images, when I try to use the Media_GetImageInfo function, I get an error stating that the referenced image cannot be found. Why?

0
Posted

On some of my images, when I try to use the Media_GetImageInfo function, I get an error stating that the referenced image cannot be found. Why?

0

You may be running into a bug in FileMaker Pro. Did you use FMP’s Import Records>Folder function to insert the pictures? When FMP imports a folder of pictures, it uses an incorrect file path notation, which then prevents MediaManager from returning the image information. There is a workaround you can use, however, for these images. Create a script that sets the following calculation into the container field holding the imported image (where myTable::Container is the name of the container): Substitute ( GetAsText (myTable::Container) ; “image:” ; Case ( Get ( SystemPlatform ) = -1 ; “imagemac:” ; “imagewin:” )) This calculation basically grabs the file path for the image in the container, fixes the format, and then with your Set Field step you are setting the corrected file path back into the container field. You shouldn’t see any change in the displayed image, but the file path format will now be correct and you can then use Media_GetImageInfo without a problem.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123