I'm writing some test code that controls Chrome using Chrome DevTools Protocol. After opening a web page, I need to get the images from the page. It's easy enough to get the image URLs, but I want to get the actual images from Chrome without re-downloading them. This will help the tests run a lot faster due to the limited bandwidth between the test client and the web server. It will also help the test to simulate a more realistic interaction with the web server.
Is there a way to get the images using Chrome DevTools Protocol? I suppose I could take a screenshot of each image, but I'd prefer to get unaltered images. Or, is there a way to access the images from a script that gets injected into the browser?