Merge pull request #1865 from appwrite/image-transformation-blog-update

Update blog post
This commit is contained in:
Ebenezer Don
2025-03-17 19:38:00 +00:00
committed by GitHub

View File

@@ -277,10 +277,10 @@ const webpImage = storage.getFilePreview(
The above image is originally a PNG file. However, by setting the output format to WebP, Appwrite automatically converts the image to WebP format and returns the transformed image. The above image is originally a PNG file. However, by setting the output format to WebP, Appwrite automatically converts the image to WebP format and returns the transformed image.
You can confirm this by downloading the image or inspecting its source. You can confirm this by downloading the image or inspecting its source.
The `output` parameter supports `png`, `jpeg`, `webp`, `gif`, `heic`, and `avif`. The `output` parameter supports `png`, `jpeg`, `webp`, `gif`, and `heic`.
Choosing the right format can significantly impact your application's performance. For example, WebP and AVIF are modern formats that offer better compression and quality than JPEG and PNG. Choosing the right format can significantly impact your application's performance. For example, WebP is a modern format that offers better compression and quality than JPEG and PNG.
However, while these are compatible with most modern browsers, it's good practice to implement a fallback for older browsers. However, while it's supported in most modern browsers, it's good practice to implement a fallback for older browsers.
# Final thoughts # Final thoughts