identify broken images

Thierry Arbellot thierry.arbellot at wanadoo.fr
Mon Dec 27 07:03:42 EST 2004


Hi,

Have you tried the size property on the image ?
if the size of image "im_1" =  0 then ...

Thierry

On Monday, Dec 27, 2004, at 00:11 Europe/Paris, Claus Dreischer wrote:

> Hi,
>
> i have a small problem i don't see a simple solution for.
> Maybe someone here has one.
>
> I want to display JPGs from file, so i make a
>
> put URL ("binfile:" & my_file) into image "im_1"
>
> This is working OK.
> But when the JPG in the filepath my_file is faulty (broken download or 
> something)
> The above line displays an empty image "im_1".
>
> I now want to identify these faulty images.
> I tried the following with no result:
>
> if the imagedata of image "im_1" is not empty then ...
>
> if image "im_1" is not empty then ...
>
> if the length of image "im_1" > 0 then ...
>
>
> Has anyone an idea how to identify an "empty" image?
> (its not realy empty but nothing is displayed)
>
>
> Regards,
> 	Claus.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list