Simply create the files below inside said directory, clean the cache (rm -rf ~/.cache/thumbnails) and restart your file manager. For nautilus for example, you can run "nautilus -q" (-q for "quit") in a terminal to terminate all running instances of it.
Make sure that imagemagick is installed for psd and webp and xcftools for xcf. If the webp and psd thumbnailers still fail to work, you might have to work around a bwrap issue that is present in some distributions (including Debian/Ubuntu). Please refer to this article in that case.
If you don't want to create the files manually, you can download this small script that can create them for you.
File: /usr/share/thumbnailers/kra.thumbnailer
[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "unzip -p %i preview.png > %o"
MimeType=application/x-krita;
File: /usr/share/thumbnailers/ora.thumbnailer
[Thumbnailer Entry]
TryExec=unzip
Exec=sh -c "unzip -p %i Thumbnails/thumbnail.png > %o"
MimeType=image/openraster;
File: /usr/share/thumbnailers/webp.thumbnailer
[Thumbnailer Entry]
TryExec=convert
Exec=convert webp:%i -scale 512x%s png:%o
MimeType=image/webp;
File: /usr/share/thumbnailers/psd.thumbnailer
[Thumbnailer Entry]
TryExec=convert
Exec=convert psd:%i[0] -scale 512x%s png:%o
MimeType=image/vnd.adobe.photoshop;
File: /usr/share/thumbnailers/xcf.thumbnailer
[Thumbnailer Entry]
TryExec=xcf2png
Exec=sh -c "xcf2png %i -o - | convert -scale 512x%s - png:%o"
MimeType=image/x-xcf;