Resize Image
Go to Store
This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?
See alternative ActorsResize Image
aweworkz/resize-image
Image Resizer
This Apify actor resizes images to the specified dimensions, maintaining the aspect ratio or cropping as required. It accepts a variety of input options, including URLs or file uploads, and provides resized images as output.
Features
- Resize images by specifying desired dimensions.
- Supports cropping or maintaining aspect ratio.
- Handles multiple input formats (png, jpg, tiff, bmp).
Input
The actor accepts a JSON object as input with the following fields:
1{ 2 "imageUrls": [ 3 "https://example.com/image1.jpg", 4 "https://example.com/image2.png" 5 ], 6 "width": 800, 7 "height": 600 8}
Input Fields
imageUrls
(required, array): List of image URLs to resize. Can be local or remote URLs.width
(required, number): The target width of the resized images in pixels.height
(required, number): The target height of the resized images in pixels.
Output
The actor returns the following output:
- A JSON object containing URLs to the resized images or direct file downloads.
1{ 2 "resizedImages": [ 3 "https://storage.apify.com/.../image1_resized.jpg", 4 "https://storage.apify.com/.../image2_resized.png" 5 ] 6}
License
This project is licensed under the MIT License. See the LICENSE file for details.
Developer
Maintained by Community
Categories