Invalid Image File / Original Image Size

Klaus major-k klaus at major-k.de
Mon Feb 17 16:08:51 EST 2020


Hi Ralph,

> Am 17.02.2020 um 22:08 schrieb Ralph DiMola via use-livecode <use-livecode at lists.runrev.com>:
> 
> What's the best way to know if I set the filename of an image control and
> the file is either not an image or in an unsupported format? I'm getting
> https links to unknown images so I check images before app deployment.

not sure, but you can check "the result2 after setting the filename.
Will be EMPTY on success.

> After resizing an image is there a way to know the original dimensions? Just
> wondering? I now save the original x/y sizes in properties so I know them
> after a resize.

"the formattedheight of img XYZ" and "the formattedwidth of img xyz" will always return
the info about the original dimensions of an image. No need to save this info somehow.

> Thanks
> 
> Ralph DiMola

Best

Klaus

--
Klaus Major
https://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list