Make every social and web size from one image
social_sizesGenerates all required social media image sizes from one source image, including Open Graph, LinkedIn, X, Instagram, YouTube, Facebook, Pinterest, TikTok, GitHub, favicon, and app icons.
Instructions
From one image, makes the sizes people need: Open Graph, LinkedIn, X (post and profile header), Instagram square/portrait/story, YouTube thumbnail and channel banner, Facebook cover and event cover, Pinterest, TikTok profile, GitHub social preview, favicon and app icons. fit: cover (fill and crop, photos), contain (whole image on a blurred copy of itself, logos and posters), pad (whole image on a solid colour). Facebook and YouTube cover/banner sizes get cropped differently on different devices: keep the subject and any text centred in the middle third so it survives every crop. Files go to the output folder named after each preset.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | cover (default) fills the frame; contain adds a blurred copy behind, which can look like padding; pad uses a solid colour | cover |
| presets | No | Default: all | |
| overwrite | No | ||
| pad_color | No | #0b1020 | |
| input_path | Yes | ||
| output_dir | No | Default: <input folder>/<name>-sizes |