Google Chrome - Get raw image ?

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
Smoke
Posts: 2
Joined: Sat Mar 22, 2014 6:01 pm

Google Chrome - Get raw image ?

Post by Smoke » Sat Mar 22, 2014 7:49 pm

Hi,

How to get raw image (byte[] or base64 string) from dom element ? (C# WebElement.GetRawImage() ?? )

I found some methods:
- WebElement.CaptureCompressedImage(): not a good solution, i need raw image size and byte.
- Get image scr from img tag and get image with html get: no, i want to get loaded image (some website not response or change image (captcha) if request image 2 time)
- Exec javascript - > set image to clipboard -> get image from clipboard (hard, i use multichrome will be confusion)
- Create google chrome extension same as ranorex (very hard for me)

Please help me!

Thanks!
Sorry for my bad english.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Google Chrome - Get raw image ?

Post by Support Team » Tue Mar 25, 2014 1:58 pm

Hi Smoke,

Is there a special reason why you want to get the raw image?
Are you sure the shown image is really a raw image and not just a jpeg?
We offer a class which provides methods to create screenshots of elements, to search for images, and for image processing, I hope this will help you: Imaging Class

Regards,
Markus
.
Image

Smoke
Posts: 2
Joined: Sat Mar 22, 2014 6:01 pm

Re: Google Chrome - Get raw image ?

Post by Smoke » Tue Mar 25, 2014 6:59 pm

Hi Markus,

Thank for reply!
I need raw image to process captcha (same image big but small on website), check same image (saved captcha (check md5)),...
Image can be png, jpg, gif...
I thing byte (md5) will be change if capture screenshot again (not a good method, image will low quality, difficult to ocr).
It will be supported in the new version of ranorex studio?

Regards,
Smoke