Introduction
Image transformations let you change pictures automatically, like resizing or cropping, without changing the original file.
Image transformations let you change pictures automatically, like resizing or cropping, without changing the original file.
https://your-project.supabase.co/storage/v1/object/public/bucket-name/image.jpg?transform=resize,width:300,height:200&transform=crop,width:100,height:100
https://your-project.supabase.co/storage/v1/object/public/photos/cat.jpg?transform=resize,width:150,height:150
https://your-project.supabase.co/storage/v1/object/public/photos/dog.jpg?transform=crop,width:100,height:100
https://your-project.supabase.co/storage/v1/object/public/photos/bird.jpg?transform=grayscale
https://your-project.supabase.co/storage/v1/object/public/photos/flower.jpg?transform=resize,width:300&transform=blur,radius:5
This URL resizes the image to 200x200 pixels, then crops a 100x100 section.
https://your-project.supabase.co/storage/v1/object/public/images/sample.jpg?transform=resize,width:200,height:200&transform=crop,width:100,height:100
Always keep the original image safe; transformations do not change the stored file.
Use transformations to improve website speed by loading smaller images.
Check Supabase documentation for all available transformation options.
Image transformations change how images look without changing the original file.
Use URL query parameters to resize, crop, or add effects.
They help make images fit better and load faster on websites and apps.
w to specify width in pixels for resizing images.?w=300.https://example.supabase.co/storage/v1/object/public/images/photo.jpg?w=200&h=100&fit=crop?w=200 (width), h=100 (height), and fit=crop which crops the image to fit exactly the given dimensions.?w=abc in the URL but it did not work. What is the likely problem?w expects a numeric value representing pixels, not letters.abc as value is invalid and causes the resize to fail.w=150 and h=150 to set width and height, and fit=crop to crop the image to exact size centered.grayscale=1 to apply grayscale effect, not true.Pass the test and this pattern moves unknown