I noticed that Appwrite has a built-in compression algorithm for files. However, when I created a new file after creating the bucket and enabled the Zstd algorithm for compression, it did not change the file size. Is there a configuration I forgot to set? When does the compression start?
My second question is: there is a URL for the file in the bucket so, is there a way to get this URL from the SDK? Because the get_file method did not send this attribute.
Summary
The user is asking about the compression algorithm and its support for specific extensions or MIME types. They also mention that compression happens on file upload and ask about when the compression starts. They mention that they enabled the compression algorithm for a file but it did not change the file size, and ask if there is a configuration they forgot to set. They also ask about getting the URL for a file in the bucket from the SDK, as the get_file method did not provide this attribute. They inquire about setting the compression level and ask if there are any options for it. They mention the file sizes before and after compression and note that the compressed files'
Kenny
Dec 21, 2023, 13:58
Not sure about the compression, but for the url, you can dynamically build that pretty easily.
Is there a specific path where the storage's files saved in on the desk?
ideclon
Jan 2, 2024, 13:21
I believe the files are in the appwrite_appwrite-uploads docker volume
darkmess
Jan 4, 2024, 04:57
I wanted to try this out and the compressed files size on disk is even larger than before uploading?
darkmess
Jan 4, 2024, 05:05
Disregard my last comment as I had encryption enabled for the bucket. But now with encryption disabled the files are still the same size (disk and console)
darkmess
Jan 4, 2024, 05:06
the original uploaded files are 2,1MB and 491KB so the compression doesn't seem to do much
Drake
Jan 4, 2024, 16:06
ya maybe the compression settings...
Drake
Jan 4, 2024, 16:10
can you set the compression level? what are your options?