Jump to content

Resize image from url to fit web viewer


Recommended Posts

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
Link to post
Share on other sites
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

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;'/>"   See

Posted Images

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

  • Like 1
Link to post
Share on other sites

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
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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