Invalid Image File / Original Image Size
Bob Sneidar
bobsneidar at iotecdigital.com
Tue Feb 18 18:12:52 EST 2020
Another one for the Utility behavior! :-)
Bob S
> On Feb 17, 2020, at 13:57 , Phil Davis via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> function isSupportedImage pPath
> # Allow JPG, PNG and GIF images.
>
> put byte 1 to 12 of url ("binfile:" & pPath) into tHeader
> switch
> case "JFIF" is in tHeader
> case "PNG" is in tHeader
> case "GIF" is in tHeader
> return true
> break
> default
> return false
> break
> end switch
> end isSupportedImage
More information about the use-livecode
mailing list