一键导入
img-dl
Download single or multiple images at once from URL(s)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Download single or multiple images at once from URL(s)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | img-dl |
| description | Download single or multiple images at once from URL(s) |
| license | https://github.com/fityannugroho/img-dl/blob/main/LICENSE |
Use this tool when you need to download images from URLs. It is particularly useful for automating the retrieval of images for datasets, web scraping, or content aggregation. It supports both single and bulk downloads, with options for customizing filenames, handling request timeouts, and retrying failed downloads.
{i} placeholder for the index, and specify the start and end index. (n) will be appended to the name of the new file if the file with the same name already exists.image (1).jpg, image (2).jpg, etc.). (n). For example, image.jpg and image.png will not be considered as the same file.imgdl --help first every time to see the latest usage information.imgdl https://example.com/image.jpgimgdl https://example.com/image.jpg https://example.com/image2.jpgimgdl https://example.com/image-{i}.jpg --increment --start=1 --end=10imgdl /path/to/urls.(txt|csv|json)url column is required. The other columns are optional.error.log in the destination directory.--name option, especially when the URL does not contain a clear filename.error.log file after bulk downloads to identify and address any issues with specific URLs.img-dl package must be installed in your environment. Install it globally with npm (or user-preferred package manager):
npm install -g img-dl
Alternatively, run it directly with npx (or user-preferred package manager runner):
npx img-dl https://example.com/image.jpg
The img-dl tool is also available as a Node.js module that can be imported and used programmatically. For more information on using the API, refer to the documentation.