Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Audit EPUB Cover Metadata With a Small Python Script

When an EPUB shows its cover in Apple Books or Calibre but arrives on a Kindle as a grey tile, the image is usually fine. What is broken is the metadata that tells a converter which image is the cover. You can check it yourself with a short, standard-library Python script that reads container.xml , finds the OPF, and compares the EPUB 3 cover-image property, the EPUB 2 <meta name="cover">…

Cover metadata in an EPUB file can be checked using a small Python script. The script reads the container.xml, finds the OPF package file, and compares various elements related to the cover image. Key points include the EPUB being a ZIP file, metadata declarations for EPUB 3 and EPUB 2, and the need for all declarations to point to the same item with the correct media type. An EPUB cover can show as a cover in one app but appear as a grey tile on Kindle due to missing or incorrect metadata.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Subscription Entitlements: Read Plan Tier Evidence Through 3 Media Billing Checks

A media access review needs a signer who can explain which subscription authorized an export and which account should receive its usage. A plan name alone cannot carry that explanation.

  • Reviewer needs specific evidence: requesting account, entitlement revision, billing owner
  • Implement programmatic decision path in Node.js SaaS application for media exports
  • Export carries operation identifier into usage accounting for traceability

Ransomware compromised server and backups of accounting office in 2018

Invasion during the weekend An accounting office was hit by a ransomware attack in 2018. On Monday, employees found the files encrypted and a demand for R$ 20 thousand in Bitcoin to regain access.

  • Accounting office in Brazil hit by ransomware attack in 2018
  • Hackers exploited exposed DVR port to gain network access
  • Data recovered for 60%-70% after partial recovery

Securing a Fresh Linux VPS: SSH Keys, UFW, and Fail2ban in 20 Minutes

Introduction to Securing Your Linux VPS Congratulations on your new Linux VPS! Whether you're hosting a website, setting up a development environment, or experimenting with server management, securing…

  • Enable SSH key authentication for enhanced security
  • Configure UFW firewall to block unauthorized access
  • Implement Fail2ban to prevent brute-force attacks

More from Sunday 22 November →