Rank 4: Virtual Machine
So do you want to save storage space, or just resize images?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 4: Virtual Machine
So do you want to save storage space, or just resize images?
Rank 3: Container
it would be both
Rank 4: Virtual Machine
Because if resizing, I guess you could use: https://appwrite.io/docs/products/storage/images
Rank 3: Container
oh well lets see
Rank 3: Container
oh but that just shows a preview of the file
Rank 3: Container
like it doesnt actually gets resized before getting into the storage
Rank 4: Virtual Machine
It does not, but does it matter what the exact size is?
Rank 4: Virtual Machine
I'm generally curious 😄
Rank 3: Container
well tbh yeah i dont want users to load 1k px images on each user's profile photo
Rank 4: Virtual Machine
I think that's where image transformations comes in
Rank 4: Virtual Machine
It's called "preview", but it's actually the full image, just with different options
Rank 4: Virtual Machine
AFAIK
Rank 3: Container
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?
Rank 4: Virtual Machine
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
Rank 4: Virtual Machine
What you basically need in the end, is the actual file, not just a blob
Rank 3: Container
could maybe use a conversor
Rank 3: Container
imma see if i can do anything about it
Rank 4: Virtual Machine
Sure, good luck!
Rank 3: Container
tytyty
Rank 3: Container
ok simple fix
Rank 3: Container
just had to use vanilla JS tool to turn information into a file
let fileObj = new File([result], file.name, { type: 'image/png' });Rank 3: Container
pushed the result blob into it as an array then just pushed the image to appwrite with the fileObj var
Rank 3: Container
ill mark this as fixed now
Rank 3: Container
[SOLVED] problems with storage file
Rank 3: Container
i would like the link to be simpler tho tbh but its all good