Make every social and web size from one image
social_sizesResize one image into social media presets such as Open Graph, Instagram, YouTube, TikTok and favicons, with cover, contain or pad fitting and per-preset output folders.
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 |