Resize Image
Pricing
$1.30 / 1,000 image resizeds
Go to Apify Store
Resize Image
Batch resize, crop, and convert images to any dimension or format using Sharp. Supports JPEG, PNG, WebP, AVIF, and more.
Resize Image
Pricing
$1.30 / 1,000 image resizeds
Batch resize, crop, and convert images to any dimension or format using Sharp. Supports JPEG, PNG, WebP, AVIF, and more.
List of image sources to process. Each item: { url, kvKey, outputName }. Use imageUrls for a simple URL list.
[]Simple list of image URLs. Cannot be combined with 'images'.
[]Output width in pixels. If only width is set, height auto-scales to maintain aspect ratio.
Output height in pixels. If only height is set, width auto-scales to maintain aspect ratio.
Scale by percentage instead of pixel dimensions. 50 = half size, 200 = double. Cannot be used with width/height.
How to fit image into target dimensions.
Crop anchor for fit: cover. Use 'attention' for smart focal point detection or 'entropy' for maximum detail.
Do not upscale images smaller than target dimensions.
Do not downscale images larger than target dimensions.
Resampling algorithm. lanczos3 is highest quality; nearest is fastest for pixel art.
Output image format. 'original' preserves the input format.
Output quality for lossy formats (JPEG, WebP, AVIF). Ignored for PNG — use compressionLevel.
PNG zlib compression level. 0 = no compression, 9 = maximum. Only applies to PNG output.
Use progressive/interlaced encoding for JPEG and PNG. Improves perceived load time in browsers.
JPEG chroma subsampling mode. 4:4:4 = highest quality; 4:2:0 = standard (default).
Use MozJPEG for 10-15% better JPEG compression at same quality. Slower encoding.
Remove EXIF, ICC, XMP metadata. Reduces file size and removes privacy-sensitive data (GPS, device info).
Keep ICC color profile even when stripMetadata is true. Useful for print workflows requiring accurate color.
Where to write processed images.
Prefix for Key-Value Store keys when outputMode is 'kvstore'.
Include file size, dimensions, and format in dataset output.
Maximum parallel image downloads and processing. Higher = faster for large batches.
Timeout per image download in seconds.