Identify the Color of an Image

2010-07-14 Thread Monyl
Hi,

1. How can I find the color of  an image present the webpage?

2. How to identify the font type of the selected text present in the
content of the web page

It would be much helpfull, if anyone responds to it ASAP

Thanks
Mohmyda
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Identify the Color of an Image

2010-07-15 Thread Monyl
On Jul 14, 9:01 pm, John Nagle  wrote:
> On 7/14/2010 5:37 AM, Monyl wrote:
>
> > Hi,
>
> > 1. How can I find thecolorof  animagepresent the webpage?
>
> > 2. How to identify the font type of the selected text present in the
> > content of the web page
>
> > It would be much helpfull, if anyone responds to it ASAP
>
> > Thanks
> > Mohmyda
>
>      "Selected text"?  Selected how?  "Selected" implies some form
> of user interface, like a browser.  If you're doing something in
> a browser, look into Firefox and Greasemonkey.
>
>                                 John Nagle

I will be using a automation tool called Sikuli and select the text or
an Image.

My Requirement
---

I will capture the image manually and scriptify using Sikuli. To find
the captured image in the web page. Once it finds the image I need to
collect the information of the image like,

Co-ordinates of the image, height and width, color and pixel rate of
the image.

If I want to search a particular text in a webpage. I need to find the
font name, type, color and size of the text.

Note :- We can open the web page in any browser. but I should be able
to capture the attributes of the image/Text displayed.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Identify the Color of an Image

2010-07-15 Thread Monyl
On Jul 14, 8:51 pm, Gary Herron  wrote:
> On 07/14/2010 05:37 AM, Monyl wrote:
>
> > Hi,
>
> > 1. How can I find thecolorof  animagepresent the webpage?
>
> > 2. How to identify the font type of the selected text present in the
> > content of the web page
>
> > It would be much helpfull, if anyone responds to it ASAP
>
> > Thanks
> > Mohmyda
>
> Please be clearer about what you want.
>
> 1. Animagedoes not "have" acolor, although each pixel in animage
> does have acolor.
>
> 2.  Text in a web page does not (necessarily)  have a font, although the
> display engine will use a font of its choice to render text.  And my
> browser will probably use a different font than yours.

Hi Gary Herron,

1.If I am going to click on a particular image. I will have click
using the co-ordinates of an Image. Can we find the color of the pixel
which lies in that particular co-ordinate where I click.

2.I just want to retrive the attributes of the text as it appears on
the browser. Can I get the font value depending on the browsers.

Hope you understand my problem.
-- 
http://mail.python.org/mailman/listinfo/python-list