Docs

RunMacro Documentation

Create your first robot, then go further as needed.

Clear step-by-step guides to create, run, and improve robots for repetitive computer work.

Docs Smart HTML Smart Download Images
🖼 Smart HTML

Download images from a page by selector (Smart Download Images)

The Smart Download Images command collects images inside an element (or the whole page) by selector and downloads them to a folder.

Prerequisites#

  • Add Smart Download Images to the macro.
  • Prepare the data or target that Smart Download Images will use.

Supported modes#

  • Browser Mode

What it does#

The Smart Download Images command collects images inside an element (or the whole page) by selector and downloads them to a folder. It filters by minimum size, caps the count, and auto-skips duplicates (by URL and content).

Screenshots & video#

RunMacro Smart Download Images command configuration dialog showing parameter fields
Configuration dialog and parameter fields for the Smart Download Images command in RunMacro.

When to use it#

  • Download a product/gallery image set from a page.
  • Collect images from a specific page region.
  • Save images locally for another workflow.

When not to use it#

  • Do not use it for blob/canvas images, content requiring another authenticated session, or unauthorized sources.

Configuration steps#

  1. Pick the selector of the region/images to download.
  2. Add a Smart Download Images command, choose the save folder.
  3. Set the min size, max count, and filename pattern.
  4. Save.

Every option explained#

Save folder#

Where to save downloaded images; created if missing.

Collect scope (picked/all)#

Only within the picked element, or all elements matching the selector on the page.

Minimum size (width/height)#

Skip images smaller than the threshold to avoid icons/junk.

Max count#

Cap the number of images per run.

Filename pattern + URL source#

Naming rule (using {index}, {hash}...) and which attribute holds the image URL.

Expected result#

After execution, Smart Download Images completes the described action and makes its result available to the next step.

Real example#

Example: download a product gallery#

  1. Pick the gallery container selector.
  2. Smart Download Images, folder C:\Images, min 300x300, max 50.
  3. Run — images are saved, duplicates/small ones skipped.

Limitations and failure cases#

  • Lazy loading, CORS/auth, data/blob URLs, and duplicate filenames can cause missing, failed, or overwritten downloads.

Tips & common mistakes#

It remembers downloaded images (by URL and content), so re-running will not re-download duplicates.

Verification details#

  • commands/smart_html.py
RunMacro robot

Robots do the work. Your time is yours.

Create a robot in minutes, no coding needed. Reliable execution, remote management, transparent costs — and you always stay in control.