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

Resize image from url to fit web viewer

Featured Replies

How can I resize an Image from a url "http://s3.amazonaws.com/photos.ecarlist.com/egWK/Z0og/ECQk/1XB9/I4Zn/vw_640.jpg" based on the size of the web viewer. 

Background

I have a table that holds all vehicles in inventory with a field that holds a url e.g. above which points to a single image nothing else, 

 

Issue

How can I get the image to resize based on the viewer size or resize it based on a specified width and height? I did run into an article that explained how I can input the image from a URL into a field "container" but I'm trying to keep the solution size small, current vehicles in inventory is 218 and each week 20+ new vehicles get added to the inventory. By the end of the year the table will probably have over 1000 vehicles.

 

Bonus Issue...LOL

when accessing the solution remotely on a computer using only chrome or safari images in the web viewer don't get displayed, but if I use filemaker pro or go it works just fine

Edited by Lou

7 hours ago, Lou said:

How can I get the image to resize based on the viewer size or resize it based on a specified width and height?

Try something like:

"data:text/html, <img src='http://s3.amazonaws.com/photos.ecarlist.com/egWK/Z0og/ECQk/1XB9/I4Zn/vw_640.jpg' style='max-height:300px; max-width:400px;'/>"

 

7 hours ago, Lou said:

when accessing the solution remotely on a computer using only chrome or safari images in the web viewer don't get displayed

See if this helps:
https://support.filemaker.com/s/article/Web-Viewer-renders-blank-in-WebDirect?language=en_US

  • Author

image.thumb.png.80d60b046054fa92c741c745f7b666bc.png

 

I've also tried without the Data:text/html, but same results

never min got it to work had to use the quotes 

thank you Comment

 

======================================================================================

its working fine as long as I use the url in the code but that's going to make it a static container across all the records, I need it to be a dynamic web viewer based on the the url in the field.

 

image.png.69e16ed5fa08ee478e61d3f84adeebfc.png

=======================================================================================

Sorry figured it out here is the way it needs to be setup for anyone else who is trying to accomplish this task thanks to Comment's help

"data:text/html, <img src='"& DealerSocketInventory::Picture &"' style='max-height:300px; max-width:400px;'/>"

need to remove the URL and add " & fieldname & " make sure the quotes are there

Edited by Lou

Create an account or sign in to comment

Important Information

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

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.