How to Download an Image?


#1

I couldn’t find information on how to download an image from a web page using either its href or src. Is this possible?

I’m using Kantu 3.1.8 for Chrome. Below are two scenarios where I’m trying download an image.

<a id="i_xl_imageFile" href="/shared-products/greenlee-tool-tone-probe-generators-701k_xl.jpg" target="_blank">ORIGINAL</a>

Clicking the link above just opens the image in a new window - I need to download it.

<img id="i_alt1_imageFile" src="/shared-products/greenlee-tool-tone--probe-generators-701k_alt1_sm.png" style="border-width:1px;border-style:solid;" />


#2

You can record a CLICK on the image to get the right locator, and then, after recording, replace the CLICK command with storeImage.

Technically storeimage does not download the image, but takes a screenshot of it. But for most cases that should be the same, or is even better (e. g. on sites that block image downloads or captcha images).

You can “download” the image screenshot from inside the Kantu “Screenshot” tab to your hard drive with a second command: LocalStorageExport

StoreImage | locator | screenshotname.png
LocalStorageExport | screenshotname.png

#3

Thanks for the reply. I had tried this, however I need the full resolution image which is typically 1000px x 1000px. The images displayed are scaled down with css so a screenshot is too small. I’m using Kantu to automate moving my product listings from one selling channel to another. I own all the content so there are no issues with download blockers or captcha.

I’m trying to migrate from iMacros and so far liking Kantu. However, I havn’t been able to automate image downloads yet.

If this feature doesn’t exist is it on the roadmap?


#4

Hi, unfortunately Kantu has no image download command yet - but it is on our to-do list for the near future.