Skip to content
Back to skills

Img2dataset

ASecurity

"Create, restart, audit, and scale img2dataset runs for turning URL

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
developmentpythonbashapibackend

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill img2dataset --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Img2dataset?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Img2dataset
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-img2dataset/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-img2dataset)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: img2dataset
description: "Create, restart, audit, and scale img2dataset runs for turning URL
  tables into image datasets."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# img2dataset

Use this skill when a user wants to turn a URL list or table into an image dataset with `img2dataset`, or needs to debug an existing download run.

## What this skill covers

- The public Python API `img2dataset.download(...)` and the `img2dataset` console command.
- Input table formats and output writer layouts.
- Image resizing, encoding, and bounding-box blurring.
- Distributed execution with multiprocessing, PySpark, and Ray.
- Restarting interrupted runs, hash verification, SSL policy, and X-Robots-Tag handling.
- Dataset-scale recipes and common troubleshooting.

## Start here

1. Confirm the package is installed and reachable:

   ```bash
   python -c "from importlib.metadata import version; from img2dataset import download; print(version('img2dataset')); print(download)"
   ```

2. Install the package in the environment you want to inspect. For a release install, use `python -m pip install img2dataset`; for a local checkout, use `python -m pip install -e .` from the checkout root.

3. Use the sub-skill that matches the user's request:
   - [core-download](sub-skills/core-download/SKILL.md) for CLI/API runs, retries, incremental recovery, hashes, SSL, and X-Robots-Tag policy.
   - [input-output-formats](sub-skills/input-output-formats/SKILL.md) for input schemas, output formats, metadata layouts, captions, hashes, and TFRecord prerequisites.
   - [image-processing](sub-skills/image-processing/SKILL.md) for resize modes, codecs, filters, and bbox blur.
   - [distributed-execution](sub-skills/distributed-execution/SKILL.md) for multiprocessing, PySpark, Ray, W&B, throughput, and cluster troubleshooting.

## Core import and CLI check

When you only need to confirm the package is alive, run one of these from a neutral working directory:

```bash
python -c "from img2dataset import download; print(download)"
img2dataset -- --help
```

If `img2dataset` is not on `PATH`, use the CLI help check described in `core-download`.

## Read before relying on this skill

- [Repository provenance](references/repo-provenance.md) if you need to confirm whether this skill matches the current checkout.
- [Dataset recipes](references/dataset-recipes.md) for common public dataset command patterns and scale notes.
- [Troubleshooting](references/troubleshooting.md) for install/import failures, backend dependencies, filesystem prefixes, and stale-skill checks.
- [Repo routing metadata](references/repo-routing-metadata.json) is consumed by the managed repo-skill router during import.

## Root helper

- [scripts/check_img2dataset_env.py](scripts/check_img2dataset_env.py) checks the installed package, signature, CLI help, and optional backend availability without depending on the original checkout.

## Route map

- Use **core-download** when the request is about starting, restarting, or recovering a run; deciding `incremental`, `overwrite`, or `extend`; or handling hashes, SSL, robots directives, and base metadata.
- Use **input-output-formats** when the request is about `--input_format`, `--output_format`, output layout, metadata schema, or TFRecord and parquet sidecars.
- Use **image-processing** when the request is about `Resizer`, `ResizeMode`, `skip_reencode`, `disable_all_reencoding`, interpolation, image size filters, or bbox blur.
- Use **distributed-execution** when the request is about `--distributor`, PySpark, Ray, W&B, process/thread tuning, `subjob_size`, or throughput bottlenecks.

## Notes for future agents

- Keep runtime guidance inside this skill tree; do not point back to the original repository checkout.
- Treat dataset-scale public recipes as reference material, not as default verification cases.
- If the current checkout has changed, compare it with `references/repo-provenance.md` before reusing the skill.

Files in this skill

  • SKILL.md3.9 KB
  • references/dataset-recipes.md3.3 KB
  • references/repo-provenance.md1.7 KB
  • references/repo-routing-metadata.json496 B
  • references/troubleshooting.md4.7 KB
  • scripts/check_img2dataset_env.py3.6 KB
  • sub-skills/core-download/SKILL.md5 KB
  • sub-skills/core-download/references/api-reference.md10.6 KB
  • sub-skills/core-download/references/quickstart.md8 KB
  • sub-skills/core-download/references/troubleshooting.md9.4 KB
  • sub-skills/core-download/scripts/tiny_download_demo.py9.6 KB
  • sub-skills/distributed-execution/SKILL.md3.9 KB
  • sub-skills/distributed-execution/references/distributed-execution.md8.5 KB
  • sub-skills/distributed-execution/references/performance-tuning.md8.7 KB
  • sub-skills/distributed-execution/references/troubleshooting.md7.2 KB
  • sub-skills/distributed-execution/scripts/check_distributed_backends.py10.6 KB
  • sub-skills/distributed-execution/scripts/pyspark_download_template.py8.4 KB
  • sub-skills/image-processing/SKILL.md2 KB
  • sub-skills/image-processing/references/image-options.md6.5 KB
  • sub-skills/image-processing/references/troubleshooting.md4.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.