this post was submitted on 17 Jan 2026
24 points (100.0% liked)

Selfhosted

61003 readers
480 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

Posting in case this helps anyone in the future. Not particularly difficult, I was just having this issue recently, and took some time today to work around it.

Lately, my Calibre-Web-Automated container will update eBook metadata, but will not update the book cover. I was never able to find an error, and using the CLI cover-enforce command didn't do anything either. I'm pretty sure that's all the GUI is doing, so not a surprise the CLI didn't work. Instead, it will insert a generic cover. For some lesser-known books, where it cannot find an appropriate cover, this procedure will also help.

First, ID the cover you want. If you have to manually scan the cover and get it into your container, you'll need to sort that out yourself. I was able to find decent enough covers on DDG image search. From there, drop into a shell in the CWA container, and run the following commands (Substitute variables below to meet your needs):

cd /calibre-library/${AUTHOR}/${BOOK_TITLE}  
curl "${IMAGE_URL}" > cover.jpg  
ebook-meta "${EBOOK_FILE}" --cover cover.jpg  

This assumes the image is a JPEG. Sub as necessary. Some that I found were WEBP files, and I wasn't sure they would work properly with ebook readers, so I just stuck with good old JPEG. Also, I figured the naming and placement of the cover file would scale fine for my whole library where needed. Adjust as you see fit.

ETA: Corrected a variable

top 1 comments
sorted by: hot top controversial new old
[–] non_burglar@lemmy.world 2 points 6 months ago

Amazing, thank you! I've had the same issue, otherwise I love CWA. Especially with Kobo integration.