From 217a18b7b5b234d7355cb7a9310221d5e2c17265 Mon Sep 17 00:00:00 2001 From: Adrian <143286922+9783e6@users.noreply.github.com> Date: Wed, 25 Jun 2025 08:14:00 +0300 Subject: [PATCH] Save images in GIF when output is set to MOBI and forcepng is used (#981) * Save images in GIF when output is set to MOBI and forcepng option is used * Save images in GIF when output is set to EPUB, kindle profile is used and forcepng option is set * media-type="image/gif" --------- Co-authored-by: Alex Xu --- kindlecomicconverter/comic2ebook.py | 2 ++ kindlecomicconverter/image.py | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 7cf605c..aa79c3e 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -336,6 +336,8 @@ def buildOPF(dstdir, title, filelist, cover=None): ".xhtml\" media-type=\"application/xhtml+xml\"/>\n") if '.png' == filename[1]: mt = 'image/png' + elif '.gif' == filename[1]: + mt = 'image/gif' else: mt = 'image/jpeg' f.write("