![]() |
#1 |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2025
Device: android
|
![]()
Bonjour à tous et toutes,
j'ai créé un plug-in pour convertir des fichiers PDF en CBZ (comics) testé sous windows et calibre 8 mais devrait fonctionner sous linux/mac (librairie compatible) - bouton dans l'interface utilisateur avec menu - sélectionnez les fiches calibre et appuyez sur le bouton - utilisation de pymupdf / fitz fournit dans le zip du plugin (donc 38Mo) - option PNG ou jpg (avec taux de compression) - il saute le fichier si pas de pdf ou s'il existe déjà un cbr ou un cbz - il extrait chaque image de chaque page et les mets à la suite une image par page dans un cbz (on suppose une image par page) - il ajoute le CBZ dans la fiche calibre du pdf comme un autre format dans les options, vous pouvez choisir la méthode de conversion : - méthode 1 : traite chaque fichier les uns après les autres en processus principal - méthode 2 : traite les fichiers en parallele toujours en processus principal - méthode 3 (en test 1 seul fichier traité pour le moment) : ajoute chaque conversion dans les taches calibre a faire : améliorer la méthode 3, plusieurs fichiers en file d'attente, gérer la barre de progression, gérer le nombre de tache en simultané, annulable. tester la compression de jpg, le parametre ne change rien (défaut 95) et je ne comprends pas pourquoi ;-) si vous avez un souci, passez en mode débuggeur et donnez moi le fichier calibre-debud-log.txt (entrée commançant par pdftocbz: ) attention la version png peut être très lourde ---------------------------- Hello everyone, I created a plugin to convert PDF files to CBZ (comics). Tested on Windows and Calibre 8, but should work on Linux/Mac (compatible library). - Button in the user interface with menu - Select the calibre files and press the button - Use pymupdf/fitz provided in the plugin's zip file - PNG or JPG option (with compression ratio) - Skips the file if there's no PDF or if a CBR or CBZ file already exists - Extracts each image from each page and places them one image per page in a CBZ file (assuming one image per page). - Adds the CBZ file to the calibre file in the PDF as another format In the options, you can choose the conversion method: - Method 1: Processes each file one after the other in the main process - Method 2: Processes the files in parallel, still in the main process - Method 3 (only 1 in testing) file currently being processed): add each conversion to the calibre tasks. To do: improve method 3, multiple files in queue, manage the progress bar, manage the number of simultaneous tasks, cancelable. Test the jpg compression, the parameter doesn't change anything (default 95) and I don't understand why ;-) If you have a problem, switch to debugger mode and give me the calibre-debud-log.txt file (entry starting with pdftocbz: ). Be careful, the png version can be very large. |
![]() |
![]() |
#2 |
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2025
Device: android
|
i repost here https://www.mobileread.com/forums/sh...d.php?t=370346
last version and with required form so this post is closed |
![]() |
![]() |
Tags |
cbz, comic, comic book, conversion, pdf |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CBZ to EPUB/PDF conversion and color | Stingo | Conversion | 9 | 05-27-2024 08:42 PM |
PDF to ZIP/CBZ Conversion - Page Order | Drybonz | Conversion | 2 | 09-27-2021 10:36 PM |
conversion of CBR/CBZ to PDF : output is not normal format | Misachat | Conversion | 2 | 03-05-2017 03:23 AM |
Is it possible to add PDF to CBR/CBZ conversion | usualsuspect | Conversion | 0 | 05-07-2011 06:22 AM |
Comic conversion problem (CBZ to PDF) on Kindle DX Graphite | kindle-dxg-owner | Calibre | 10 | 12-15-2010 08:58 AM |