agentleFS
rajnandan1rajnandan1/such-skills/skills/image-resize/SKILL.md

image-resize

Skill3 starsChanged 9 months agoMITView on GitHub

Resize and crop images to exact platform-specific dimensions for social media, app stores, ads, and web. Supports 60+ platform presets including OG images, YouTube thumbnails, App Store screenshots, Play Store graphics, TikTok, Pinterest, Threads, Substack, Chrome Web Store, Notion covers, Instagram, Twitter, Dribbble, Bluesky, Product Hunt, LinkedIn, Facebook, and more. Uses ImageMagick for high-quality Lanczos resampling. Works on macOS, Linux, and Windows. Use this skill whenever the user wants to resize an image for a specific platform, create social media assets, generate app store screenshots, make thumbnails, create OG images, prepare images for upload, or batch-resize to multiple sizes. Also trigger when the user mentions any platform (YouTube, TikTok, Pinterest, App Store, Play Store, Substack, Threads, Chrome Web Store, Notion, etc.) in the context of image sizing, resizing, cropping, or preparation — even if they don't explicitly say "resize".

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. godot-fun/gai★ 179same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run the bundled script:

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Image Resize — Platform-Aware Image Resizer

Resize and crop any image to exact dimensions for 60+ platform presets using ImageMagick's high-quality Lanczos resampling.

Prerequisites

ImageMagick is required. If not installed:

brew install imagemagick    # macOS
sudo apt install imagemagick # Debian/Ubuntu

How to use

Run the bundled script:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" <input-image> [OPTIONS]

Options

FlagDescriptionDefault
--platform NAMEGenerate image for a specific platform preset(required unless --all)
--allGenerate images for every presetoff
--category CATGenerate all presets in a category (e.g. youtube, appstore)—
--output DIROutput directory./resized/
--listList all available platform presets and exit—
--fitFit image inside target (letterbox with padding) instead of cover-cropoff (cover-crop)
--pad-color HEXPadding color when using --fit (6-digit hex, no #)FFFFFF
--quality NOutput quality 1-10092

Platform presets

The script knows these categories. For the full list of preset names and exact pixel dimensions, read references/platforms.md.

CategoryPresets
Web / SEOog-image, blog-cover, notion-cover
Chrome Extensionchrome-screenshot, chrome-small-promo, chrome-marquee-promo
Adsfeed-ad, post-ad
Play Storeplay-icon, play-feature, play-screenshot-5, play-screenshot-6
App Storeappstore-iphone-15-pro-max, appstore-iphone-14-plus, appstore-iphone-14-pro, appstore-iphone-14, appstore-ipad-pro, appstore-mac, appstore-watch-ultra, appstore-watch-series
YouTubeyoutube-profile, youtube-cover, youtube-thumbnail
TikToktiktok-profile, tiktok-video, tiktok-image-ad, tiktok-square-ad
Pinterestpinterest-profile, pinterest-board-cover, pinterest-square, pinterest-medium, pinterest-long
Substacksubstack-featured, substack-logo, substack-email-banner, substack-social, substack-cover
Threadsthreads-profile, threads-square, threads-carousel
Instagraminstagram-feed-square, instagram-feed-portrait, instagram-stories, instagram-reels
Twittertwitter-one-image, twitter-two-images, twitter-cover-photo, twitter-og
Dribbbledribbble-shot
Blueskybluesky-post, bluesky-cover, bluesky-cover-mobile
Product Huntproducthunt-gallery, producthunt-thumbnail
LinkedInlinkedin-feed, linkedin-cover-business, linkedin-cover-personal, linkedin-stories
Facebookfacebook-news-feed, facebook-stories, facebook-cover-photo, facebook-og

Examples

Single platform — OG image for a blog post:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" hero.png --platform og-image

All YouTube sizes at once:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" channel-art.png --category youtube --output ./youtube-assets/

Every platform preset from one source image:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" brand-logo.png --all --output ./all-sizes/

Fit mode (letterbox instead of crop) with black padding:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" screenshot.png --platform appstore-iphone-15-pro-max --fit --pad-color 000000

List available presets:

bash "${CLAUDE_SKILL_DIR}/scripts/resize.sh" --list

How it works

The script uses a cover-crop strategy by default — the same approach image editors use for "fill" mode:

  1. Scale the image so it fully covers the target rectangle (using ImageMagick's resize WxH^ with Lanczos filter)
  2. Center-crop to the exact target dimensions (using -gravity center -extent WxH)

This means no distortion and no empty space — the image always fills the frame, cropping from the center if the aspect ratios differ.

With --fit, the strategy flips: the image is scaled to fit inside the target, then padded to exact dimensions with a solid color. This is useful for screenshots or images where you don't want anything cropped off.

When to pick which mode

  • Banners, covers, thumbnails, OG images — default cover-crop is usually best. The subject should be centered in the source image for best results.
  • App Store / Play Store screenshots — use --fit so UI elements at the edges aren't clipped.
  • Icons and profile photos — cover-crop works well since these are typically square-ish crops of a centered subject.
  • Pinterest long pins — if your source is landscape, --fit avoids aggressive cropping.

Supported input formats

ImageMagick handles PNG, JPEG, TIFF, GIF, BMP, WebP, HEIC, and many more. Output format matches the input (a .png stays .png, a .jpg stays .jpg).

Output naming

Files are saved as <platform-name>.<ext> in the output directory. For example:

  • resized/og-image.png
  • resized/youtube-thumbnail.jpg
  • resized/appstore-iphone-15-pro-max.png

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.