{# canonical_base is the OWNING tenant's origin: all 16 Peasy domains serve the same catalogue, so a page rendered by a non-owner points its canonical at the owner instead of competing with it. Falls back to this site for static/self-owned pages. #}
🍋
Menu
File Formats

EPUB

Electronic Publication

An open standard e-book format using XHTML, CSS, and images packaged in a ZIP container for reflowable content.

Technisches Detail

File epub reduces storage and transmission size. DEFLATE (used in ZIP and gzip) combines LZ77 dictionary coding with Huffman coding. Brotli (RFC 7932) achieves 15-25% better compression than gzip for text content and is supported by all modern browsers for HTTP compression. Zstandard (zstd) offers tunable compression levels from fast (comparable to lz4) to high (comparable to LZMA). For files already in compressed formats (JPEG, MP3, ZIP), re-compression provides negligible benefit and may slightly increase file size.

Beispiel

```javascript
// Create ZIP archive in browser (using JSZip)
const zip = new JSZip();
zip.file('readme.txt', 'Hello World');
zip.file('data/report.csv', csvContent);

const blob = await zip.generateAsync({
  type: 'blob',
  compression: 'DEFLATE',
  compressionOptions: { level: 6 },
});
saveAs(blob, 'archive.zip');
```

Verwandte Formate

Verwandte Tools

Verwandte Begriffe