Resize Image avatar
Resize Image

Deprecated

Pricing

$22.00/month + usage

Go to Store
Resize Image

Resize Image

Deprecated

Developed by

aweworkz

aweworkz

Maintained by Community

0.0 (0)

Pricing

$22.00/month + usage

0

Total users

1

Monthly users

1

Last modified

9 months ago

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:

{
"imageUrls": [
"https://example.com/image1.jpg",
"https://example.com/image2.png"
],
"width": 800,
"height": 600
}

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.
{
"resizedImages": [
"https://storage.apify.com/.../image1_resized.jpg",
"https://storage.apify.com/.../image2_resized.png"
]
}

License

This project is licensed under the MIT License. See the LICENSE file for details.