How to scale the content of the Browser Widget

Ralph DiMola rdimola at evergreeninfo.net
Tue Jul 13 17:22:48 EDT 2021


One way...
Create a local html template and replace an href place holder in the
template to the url of the web server image.
Then load the template page into the browser widget and let html do the
resizing heavy lifting. This will not break cors.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net

-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of matthias rebbe via use-livecode
Sent: Tuesday, July 13, 2021 5:00 PM
To: How to use LiveCode
Cc: matthias_livecode_150811 at m-r-d.de
Subject: How to scale the content of the Browser Widget

Hi,

i need to display jpeg images in the browser widget. The images are stored
on a webserver and i  have no control about the size of the images. 
What i can say is that the images are larger than the browser widget area.
Is there a way to scale the images so they are fully visible in the browser
widget? 
I do not want to temporarily store them on hard disk, resize them and then
display.
I need something like an "on the fly" scaling.  
I am wondering if this might be possible with Javascript? Unfortunately i am
not very used Javascript.

Does anyone know if this is possible?

Regards,

Matthias


_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list