So do you want to save storage space, or just resize images?
it would be both
Because if resizing, I guess you could use: https://appwrite.io/docs/products/storage/images
oh well lets see
oh but that just shows a preview of the file
like it doesnt actually gets resized before getting into the storage
It does not, but does it matter what the exact size is?
I'm generally curious 😄
well tbh yeah i dont want users to load 1k px images on each user's profile photo
I think that's where image transformations comes in
It's called "preview", but it's actually the full image, just with different options
AFAIK
yeah that could be good but wouldnt it actually be better to just compress the image beforehand so then i dont have to programatically do a transform later?
Sure. But as Steven said, I don't think that's supported. Otherwise you'd need a service in between that would do this for you
What you basically need in the end, is the actual file, not just a blob
could maybe use a conversor
imma see if i can do anything about it
Sure, good luck!
tytyty
ok simple fix
just had to use vanilla JS tool to turn information into a file
let fileObj = new File([result], file.name, { type: 'image/png' });
pushed the result blob into it as an array then just pushed the image to appwrite with the fileObj var
ill mark this as fixed now
[SOLVED] problems with storage file
i would like the link to be simpler tho tbh but its all good
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...