Hello,
Do you have any suggestions/advice on how to extract all images that have been loaded in the browser, i.e. image content, not (just) image name.
Thanks
Rael
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
Extract all images from browser
- salvadordf
- Posts: 4564
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: Extract all images from browser
Hi,
I've never tried it but I guess you can do this :
Remember that the SimpleOSRBrowser demo has a "snapshot" button to save the whole web page as an image.
I've never tried it but I guess you can do this :
- Leave the GlobalCEFApp.cache blank to use "in-memory" cache.
- Use the TChromium.OnBeforeResourceLoad event while the web page is loading and store all the image URLs. Check that the request.ResourceType property is RT_IMAGE.
- Use the TChromium.StartDownload function to download each stored image URL. The download should be instantaneous because TChromium will save the copy in the memory cache.
- Images drawn in a canvas.
- Images drawn piling up DIVs with a background color or stretched pixels.
- Images drawn using unicode characters with fonts loaded from the Internet.
Remember that the SimpleOSRBrowser demo has a "snapshot" button to save the whole web page as an image.
Re: Extract all images from browser
Thanks. Interesting strategy. Not instantaneous if there are a lot of images, but still works well.
Thanks
Rael
Thanks
Rael