[graphics/krita/krita/6.0] 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 6dbc471c7cb9dc5fca3b7d1f9856e6428ae5e965 by Wolthera van Hövell tot Westerflier.
Committed on 06/08/2026 at 13:30.
Pushed by woltherav into branch 'krita/6.0'.

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/6dbc471c7cb9dc5fca3b7d1f9856e6428ae5e965

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.