pexels-image-downloader
使用Pexels API搜索和下载高质量免费图片,支持自动调整尺寸和格式验证
Why use this skill?
Efficiently search, download, and resize high-quality royalty-free images with the Pexels Image Downloader skill. Ideal for social media and content creators.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/glittering/pexels-image-downloaderWhat This Skill Does
The pexels-image-downloader is a powerful AI-driven utility designed to seamlessly integrate high-quality visual content into your workflows. By interfacing directly with the Pexels API, this skill allows users to search, filter, and download professional-grade, royalty-free photography without ever leaving the OpenClaw environment. Beyond simple downloading, the tool includes sophisticated post-processing capabilities, such as automatic resizing for specific social media platforms like Xiaohongshu, WeChat, and Weibo, as well as rigorous format validation to ensure all files meet your technical specifications. It is an essential toolkit for content creators who need to maintain a high aesthetic standard while adhering to strict commercial usage licenses.
Installation
To integrate this skill into your local OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/glittering/pexels-image-downloader
After installation, ensure you have your Pexels API key generated from their developer dashboard. You can set this as an environment variable using export PEXELS_API_KEY="your_key" to enable seamless authenticated requests. The skill automatically handles dependency management for necessary image processing libraries like Pillow.
Use Cases
This skill is perfect for social media managers who need consistent high-quality visuals for daily posts. It excels in automation tasks, such as generating batches of images for marketing campaigns, preparing cover photos for blog posts, or creating branded social media assets. Developers can also use it to populate test datasets with realistic imagery for UI/UX design prototypes.
Example Prompts
- "Search for 5 high-resolution photos of minimalist desk setups and resize them to 1242x1660 for my Xiaohongshu post."
- "Find me some vibrant, portrait-oriented images of spring flowers that are suitable for commercial use and save them to the /downloads/spring folder."
- "Download 3 professional food photography images with a warm color tone and verify that they are in JPEG format."
Tips & Limitations
To get the best results, always be specific with your search queries. Using the --platform flag is the most efficient way to ensure your images meet the layout requirements of your target channels. Note that while the tool handles automatic resizing, extreme scaling may lead to pixelation. Ensure your API key has sufficient remaining quota, as heavy batch downloading can reach Pexels' rate limits. Always review the metadata saved with your images to ensure compliance with Pexels' licensing terms for your specific project.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-glittering-pexels-image-downloader": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-write, external-api