Skip to content

Commit 4c26571

Browse files
committed
readme file
1 parent b7e99db commit 4c26571

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# sorl thumbnail avif
2+
3+
a python package to add avif support to sorl-thumbnail.
4+
5+
**note**: this package will get support until sorl-thumbnail supports avif, then it'll be archived.
6+
7+
8+
### Installation
9+
10+
``` bash
11+
pip install sorl-thumbnail-avif
12+
```
13+
14+
### Usage:
15+
16+
add these lines to your settings file:
17+
18+
``` python
19+
THUMBNAIL_FORMAT = "AVIF"
20+
THUMBNAIL_ENGINE = "sorl_thumbnail_avif.thubmnail.engines.AvifEngine"
21+
THUMBNAIL_BACKEND = "sorl_thumbnail_avif.thubmnail.AvifThumbnail"
22+
```
23+
24+
**note**: you can use any of the sorl-thumbnail supported formats as well, so `JPEG` or others also work.

0 commit comments

Comments
 (0)