summaryrefslogtreecommitdiff
path: root/media/libjxl/src/plugins/gdk-pixbuf/README.md
blob: f7174baf3c72f2e62924dd71eac5ef9d24edc2a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## JPEG XL GDK Pixbuf


The plugin may already have been installed when following the instructions from the
[Installing section of README.md](../../README.md#installing), in which case it should
already be in the correct place, e.g.

```/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jxl.so```

Otherwise we can copy it manually:

```bash
sudo cp $your_build_directory/plugins/gdk-pixbuf/libpixbufloader-jxl.so /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jxl.so
```


Then we need to update the cache, for example with:

```bash
sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache
```

In order to get thumbnails with this, first one has to add the jxl MIME type, see
[../mime/README.md](../mime/README.md).

Ensure that the thumbnailer file is installed in the correct place,
`/usr/share/thumbnailers/jxl.thumbnailer` or `/usr/local/share/thumbnailers/jxl.thumbnailer`.

The file should have been copied automatically when following the instructions
in the [Installing section of README.md](../../README.md#installing), but
otherwise it can be copied manually:

```bash
sudo cp plugins/gdk-pixbuf/jxl.thumbnailer /usr/local/share/thumbnailers/jxl.thumbnailer
```

Update the Mime database with
```bash
update-mime --local
```
or
```bash
sudo update-desktop-database
```

Then possibly delete the thumbnail cache with
```bash
rm -r ~/.cache/thumbnails
```
and restart the application displaying thumbnails, e.g. `nautilus -q` to display thumbnails.