Complete the code to resize an image to 300x300 pixels using Supabase storage URL.
const resizedImageUrl = supabase.storage.from('images').getPublicUrl('photo.jpg').data.publicUrl + '?[1]=resize&width=300&height=300';
The correct query parameter to apply image transformations in Supabase storage URLs is img.
Complete the code to rotate an image by 90 degrees using Supabase image transformations.
const rotatedImageUrl = supabase.storage.from('avatars').getPublicUrl('user.png').data.publicUrl + '?img=rotate:[1]';
To rotate an image by 90 degrees, use rotate:90 in the transformation query.
Fix the error in the code to flip an image horizontally using Supabase transformations.
const flippedImageUrl = supabase.storage.from('photos').getPublicUrl('landscape.jpg').data.publicUrl + '?img=flip:[1]';
The correct value to flip an image horizontally is horizontal.
Fill both blanks to crop an image to 100x100 pixels starting at x=10 and y=20.
const croppedImageUrl = supabase.storage.from('gallery').getPublicUrl('pic.png').data.publicUrl + '?img=crop:width=[1],height=100,x=[2],y=20';
The width for cropping is 100 pixels and the x coordinate is 10.
Fill all three blanks to apply a grayscale filter, resize to 200x200, and rotate by 180 degrees.
const transformedImageUrl = supabase.storage.from('avatars').getPublicUrl('profile.jpg').data.publicUrl + '?img=[1]&img=[2]&img=[3]';
The transformations are applied in order: grayscale filter, resize, then rotate 180 degrees.
