Closed Chhunneng closed 1 year ago
It shows error and not sure it error because wand or imagemagick
The "command not found" is key. The server is not set-up to decode the image formats being submitted through the django application.
Ensure the server has all the decoding libraries installed. In this case, jpegxr support is needed, and should be provided by jxrlib
. Tip for future projects: use unit testing to identify problems, and a combination of pyinfra & fabric to ensure all environments match.
As I try to convert many file type on my computer, it worked normally. But in django rest framework on webserver, not work. In serializer, I create a temporary directory, then I save file from request body to directory and I use wand to read image from temporary and write it back for converted file. It shows error and not sure it error because wand or imagemagick
Here is my code
Note: but when I try on my PC it works normal