Reputation: 2489
I have image at url as below:
http://ipcamera-viewer.com/image/?p=199619_20170221_162149_7208.jpg
Because I can't download it easily so I used way like this
browser.get(urlServer)
browser.save_screenshot(pathLocal)
I don't want to download image only black that size is small, so I want to check the file size, I tried to use
imgData = browser.get_get_screenshot_as_base64()
if len(imgData) > 5000: browser.save_screenshot(pathLocal)
But base64 is not the same as image size, what can I do?
Upvotes: 0
Views: 505