From 4eabb3842799eeb1d64a6b1e3cebd96f9c7b3f83 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 21 Feb 2026 11:59:23 +0530 Subject: [PATCH] Fix #2142345 [Converting ODT to EPUB jpeg images indicates not found](https://bugs.launchpad.net/calibre/+bug/2142345) --- src/calibre/ebooks/odt/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/odt/input.py b/src/calibre/ebooks/odt/input.py index 438e0336b7..cc8073ee37 100644 --- a/src/calibre/ebooks/odt/input.py +++ b/src/calibre/ebooks/odt/input.py @@ -34,7 +34,7 @@ class Extract(ODF2XHTML): for name in zf.namelist(): if name.startswith('Pictures') and name not in {'Pictures', 'Pictures/'}: dest = os.path.abspath(os.path.join(base, name)) - if os.path.commonprefix([base, dest]) != dest: + if os.path.commonprefix([base, dest]) != base: continue data = zf.read(name) with open(dest, 'wb') as f: