Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Avatars → Get Image
AI-generatedOverview
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
- Fetching a user's avatar image from a URL and resizing it to 100x100 pixels for display in a user interface.
- 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.