You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the input from the user as a base64 string, and then on my server, I convert it using Buffer.from(base64string, "base64").
The issue is that the output from imagemin is not compressed at all. I'm logging the size of the data before and after the process. Although it works perfectly when I pass binary data (such as from fs.readFile...), it seems not to be possible to use binary data that has been converted from base64 strings.
note that here in this code I'm reading a base64 string from a .txt file for testing purposes only, the real scenario will happen on the server with the base64 string being provided by the user
The text was updated successfully, but these errors were encountered:
I get the input from the user as a base64 string, and then on my server, I convert it using Buffer.from(base64string, "base64").
The issue is that the output from imagemin is not compressed at all. I'm logging the size of the data before and after the process. Although it works perfectly when I pass binary data (such as from fs.readFile...), it seems not to be possible to use binary data that has been converted from base64 strings.
Any thoughts on this?
my code:
The text was updated successfully, but these errors were encountered: