README.md (1540B)
1 ## JPEG XL GDK Pixbuf 2 3 4 The plugin may already have been installed when following the instructions from the 5 [Installing section of BUILDING.md](../../BUILDING.md#installing), in which case it should 6 already be in the correct place, e.g. 7 8 ```/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jxl.so``` 9 10 Otherwise we can copy it manually: 11 12 ```bash 13 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 14 ``` 15 16 17 Then we need to update the cache, for example with: 18 19 ```bash 20 sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache 21 ``` 22 23 In order to get thumbnails with this, first one has to add the jxl MIME type, see 24 [../mime/README.md](../mime/README.md). 25 26 Ensure that the thumbnailer file is installed in the correct place, 27 `/usr/share/thumbnailers/jxl.thumbnailer` or `/usr/local/share/thumbnailers/jxl.thumbnailer`. 28 29 The file should have been copied automatically when following the instructions 30 in the [Installing section of README.md](../../README.md#installing), but 31 otherwise it can be copied manually: 32 33 ```bash 34 sudo cp plugins/gdk-pixbuf/jxl.thumbnailer /usr/local/share/thumbnailers/jxl.thumbnailer 35 ``` 36 37 Update the Mime database with 38 ```bash 39 update-mime --local 40 ``` 41 or 42 ```bash 43 sudo update-desktop-database 44 ``` 45 46 Then possibly delete the thumbnail cache with 47 ```bash 48 rm -r ~/.cache/thumbnails 49 ``` 50 and restart the application displaying thumbnails, e.g. `nautilus -q` to display thumbnails.