Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Avatars → Get Image

AI-generated

Overview

This node operation fetches and crops a remote image from a specified URL, allowing users to resize the image to desired dimensions. It is useful for scenarios where you need to retrieve avatars or other images from external sources and adjust their size for display or processing purposes, such as user profile pictures or thumbnails.

Use Case Examples

  1. Fetching a user's avatar image from a URL and resizing it to 100x100 pixels for display in a user interface.
  2. Retrieving a product image from a remote server and cropping it to specific dimensions for use in a catalog.

Properties

Name Meaning
Image URL The remote image URL to fetch and crop, required for the operation.
Width The desired width of the image in pixels, ranging from 0 to 2000. Use 0 to keep the original width.
Height The desired height of the image in pixels, ranging from 0 to 2000. Use 0 to keep the original height.

Output

JSON

  • imageUrl - The URL of the fetched and cropped image.
  • width - The width of the resulting image in pixels.
  • height - The height of the resulting image in pixels.

Dependencies

  • Requires an API key credential for Appwrite service authentication.

Troubleshooting

  • Ensure the provided Image URL is accessible and points to a valid image format to avoid fetch errors.
  • Width and Height values must be between 0 and 2000; using values outside this range may cause errors or unexpected results.
  • If the node fails to fetch or crop the image, check network connectivity and API key validity.

Discussion