Prompt
Need batch resize website images
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
Sure — if you need to batch resize website images, there are a few good ways to do it depending on your setup.
Fast options
1) Command line with ImageMagick
If you have a folder of images and want them all resized:
magick mogrify -resize 1200x1200\> -path output *.jpg
1200x1200\>means resize only if larger, while keeping aspect ratiooutputis the destination folder
For multiple formats:
magick mogrify -resize 1200x1200\> -path output *.*
2) Use a bulk image tool
Good GUI tools:
- XnConvert (Windows/Mac/Linux)
- IrfanView (Windows)
- Photoshop Batch Actions
- GIMP Batch / BIMP plugin
3) Automate with a script
If you want, I can give you:
- a Python script
- a Node.js script
- a shell script
Recommended website sizes
Depends on your layout, but common sizes are:
- Hero images: 1920px wide
- Content images: 1200–1600px wide
- Thumbnails: 300–600px wide
- WebP is often best for smaller file sizes
Best practice
For websites, it’s usually better to:
- resize to the largest size actually needed
- compress images
- convert to WebP or AVIF
- keep aspect ratio
If you want, I can help you with one of these:
- Batch resize all images in a folder
- Resize to specific widths for a website
- Compress and convert to WebP
- Create a script for Windows/Mac/Linux
Tell me your OS and preferred size, and I’ll give you the exact steps.