Batch resize, convert, optimize images. WebP, AVIF conversion. Bulk watermark and compress. Free image processing tool.
Bulk process images from the command line.
Resize. Convert. Optimize. Watermark.
npm install -g @lxgicstudios/imgbatch
# Resize all images in folder
imgbatch resize ./images --width 800
# Convert to WebP
imgbatch convert ./images --format webp
# Optimize for web
imgbatch optimize ./images --quality 85
# Resize maintaining aspect ratio
imgbatch resize ./images -w 1200 -o ./resized
# Convert all to WebP
imgbatch convert ./images -f webp -q 80 -o ./webp
# Generate responsive sizes
imgbatch responsive ./images --sizes 320,640,1280 -o ./responsive
# Add watermark
imgbatch watermark ./images --text "© 2024" --position bottomright
# Compress for web
imgbatch optimize ./images --target-size 200kb
# Remove EXIF data
imgbatch strip ./images --exif
| Input | Output |
|---|---|
| PNG, JPG, GIF, TIFF, BMP | PNG, JPG, WebP, AVIF |
Built by LXGIC Studios