[graphics/krita] plugins/python/comics_project_management_tools/exporters: CPMT: make epub image take up full-width.

Wolthera van Hövell tot Westerflier <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 303568d8f5cd6a11b156a42ac74fcc9ccf6d8462 by Wolthera van Hövell tot Westerflier.
Committed on 06/08/2026 at 12:27.
Pushed by woltherav into branch 'master'.

CPMT: make epub image take up full-width.

This is well-supported among epub readers.

M  +1    -0    plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py

https://invent.kde.org/graphics/krita/-/commit/303568d8f5cd6a11b156a42ac74fcc9ccf6d8462

diff --git a/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py b/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
index 492f58d2587..b3738c39a17 100644
--- a/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
+++ b/plugins/python/comics_project_management_tools/exporters/CPMT_EPUB_exporter.py
@@ -186,6 +186,7 @@ def export(configDictionary = {}, projectURL = str(), pagesLocationList = [], pa
 
         img = doc.createElement("img")
         img.setAttribute("src", os.path.relpath(pagesList[i], str(textPath)))
+        img.setAttribute("width", "100%")
         body.appendChild(img)
 
         html.appendChild(body)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.