This sample database can be used by FileMaker developers to help create a customized solution. It is provided free of charge.
I was reading a FileMaker blog the other day about addressing the issue of resizing an image in a web viewer here. These are some good ideas and solutions to the problem presented there but I think that there is a simpler way that is not limited to square images. This sample file that elegantly shows how to dynamically resize an image in a web viewer by using a data URL.
Take a look at the formula for the web viewer in the sample file. It builds a data URL that allows the image to be resized by the web browser based on the actual web viewer layout attributes or fixed numbers. The height or width attribute can be removed to maintain proportions for the graphic. This method is very simple, works on any size graphics, and requires no Javascript.

This is interesting, however it look like there isn’t a solution for fixing W or H keeping the proportions of the image, or I am missing something?
Thanks though, I didn’t know this was possible in web viewer…
Yes you can keep the proportions. Choose to specify either the width OR the height (not both) and leave the other parameter out of the html code and the proportions will remain with the parameter you specified being fixed.
I just tried your FileMaker Web Viewer Dynamic Image Resizing but it doesnt seem to fill any box completely using my image in your sample file. What am I doing wron or what should I try? I can sen a sample picture.
Is it supposed to work as well with a local path like
file://Macintosh HD/Users/gaelxhauflaire/Desktop/Images Fluo/20120207/11.jpg
When used alone in the web viewer, this path shows me the picture, which is far too big and is truncated
Your “resizing method” is great but i cannot manage the html writing to recognize the local path…
Thank you
This method should work fine with a local path but you need to escape out the spaces in your path by replacing them with %20. I tested with a document on my desk top with the following path file://Macintosh%20HD/Users/timcimbura/Desktop/test.png and it worked fine. Hope that helps.
Thanks !!
Thanks! Can save PDF catalog with resized web images. Work very well!