update
This commit is contained in:
parent
e012f27f02
commit
03875a1179
@ -19,9 +19,9 @@ Q1. ```KeyError: webp```
|
|||||||
|
|
||||||
Ans. We use webp format to encode the image and your system have no libwebp installed.
|
Ans. We use webp format to encode the image and your system have no libwebp installed.
|
||||||
|
|
||||||
1. you can change the format to others by modifying the code ```img = img.save(img_stream, format='webp')``` in server.py/HTTPImageServer.handle_image(line 165)
|
1. you can change the format to others by modifying the code ```img = img.save(img_stream, format='webp')``` in server.py/HTTPImageServer.handle_image(line 165)
|
||||||
|
|
||||||
2. you can install ```libwebp-dev``` and reinstall pillow package for webp support.
|
2. you can install ```libwebp-dev``` and reinstall pillow package for webp support.
|
||||||
|
|
||||||
## 3. Structure.
|
## 3. Structure.
|
||||||
The server.py mainly provides two api.
|
The server.py mainly provides two api.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user