Install
openclaw skills install @j3ffyang/resize-for-bannerRescale an image (usually a screenshot from imgs/) into social banner versions: 16:9 for the LinkedIn article header and 5:2 for Twitter/X, using ImageMagick. The image is resized to fit and the leftover space is padded black — never cropped. Use when the user wants a banner, cover photo, or "16:9 / 5:2" version for a social profile or article header. Never overwrites the original — creates new files beside it.
openclaw skills install @j3ffyang/resize-for-bannerTurn one image into social banner variants with ImageMagick, keeping the original file untouched and writing new files beside it. The image is rescaled to fit and black-padded, never cropped, so no content is lost.
source — Path to the original image, e.g. ai-thoughts/imgs/260806-1656.png. Required.sizes — Which banners to produce. Default: LinkedIn article 1200x675 and Twitter 1500x600.imgs/<base>-banner-linkedin.png — 1200x675 (16:9 article), aspect preserved, black padding.imgs/<base>-banner-twitter.png — 1500x600 (5:2), aspect preserved, black padding.<base> keeps the original filename exactly (e.g. 260806-1656 → 260806-1656-banner-linkedin.png). The original file is never modified.Confirm the plan with the user: source image, target sizes, output filenames. Get a go-ahead before writing files.
Check the original dimensions with identify or magick identify "<source>" so you can predict which axis will be padded.
Resize to fit, then pad with black with ImageMagick 7 magick:
# LinkedIn article — fit inside 1200x675, center on black 1200x675 canvas
magick <source> -resize "1200x675" -background black -gravity center \
-extent 1200x675 imgs/<base>-banner-linkedin.png
# Twitter — fit inside 1500x600, center on black 1500x600 canvas
magick <source> -resize "1500x600" -background black -gravity center \
-extent 1500x600 imgs/<base>-banner-twitter.png
-resize "WxH" (no bang) scales to fit inside the box, preserving the
aspect ratio — the image is never distorted or cropped.-extent WxH then pads the leftover space; -background black makes the
padding dark and -gravity center centers the image.Verify every output with identify — dimensions must match the target size exactly.
Report the output paths and confirm the original is untouched (git status shows the new files as untracked, the original unmodified).
identify reports exactly 1200x675 and 1500x600 for the two outputs.identify output / git status).imgs/ and ask which to use.magick is always installed on the user's machines — skip checking for it and run the commands directly.