How to Check Presence of Picture

darlab

Client
Регистрация
17.12.2012
Сообщения
18
Благодарностей
0
Баллы
1
I know there is a "search by picture" function. But what I want is to check presence of a picture. If the picture exists I will perform action A, and if not I will perform action B. Is there any way to do this? Thanks.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
here's an example
 

Вложения

darlab

Client
Регистрация
17.12.2012
Сообщения
18
Благодарностей
0
Баллы
1
Thanks but i'm afraid the example won't help. The picture I refer to is a captcha image. I want to check if it is loaded properly.
It leaves a rectangular border when wasn't loaded, I could use the "Search by picture" function to find this but can't follow up with different actions.
All the attributes of it exists even it wasn't loaded so checking them won't work. Is there any other way that will work?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Why you need to check if captcha image was loaded? If it's not captcha recognition action will fail. Simple as that.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)