Troubleshooting - Elvyria/thumbnailer-bridge GitHub Wiki
This page contains some tips to help you resolve issues with thumbnails.
First thing to check is if the format is detected properly.
file --mime-type <FILE>Sometimes epub's are not packed properly, they're essentially just zip files.
Let's extract contents first.
unzip <FILE> -d tmp && cd tmpCreate mimetype file inside.
echo -n 'application/epub+zip' > mimetypeTwo things are essential in repacking process:
-
mimetypemust be the first file that goes into archive. - Cover image must be the first image that goes into archive.
zip -rX <FILE> mimetype META-INF OEBPS/Images/cover.jpg OEBPS <...>If OEBPS directory doesn't exist, use whatever your file was packaged with.