Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 10-29-2020, 01:45 PM   #1
pavel1
Junior Member
pavel1 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2020
Device: Kindle Oasis
Question Conversion plugin that only does one type of conversion

Hello,

I want to create a conversion plugin that converts from CBZ/CBR directly to MOBI.
I already created an InputFormatPlugin for CBZ/CBR but it is always deployed when I convert CBZ files.
Can I change the behavior of my plugin so that it only gets triggered when the target format is MOBI and else calibre uses the default CBZ/CBR plugin?

Thanks for any hints!
pavel1 is offline   Reply With Quote
Old 10-29-2020, 06:58 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,392
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
What's wrong with having Calibre convert to Mobi?
JSWolf is offline   Reply With Quote
Advert
Old 10-29-2020, 07:33 PM   #3
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by pavel1 View Post
I want to create a conversion plugin that converts from CBZ/CBR directly to MOBI.
I already created an InputFormatPlugin for CBZ/CBR but it is always deployed when I convert CBZ files.
Can I change the behavior of my plugin so that it only gets triggered when the target format is MOBI and else calibre uses the default CBZ/CBR plugin?
From what I have seen, I'm pretty sure the answer is no. And I think that is deliberate. The conversion allows conversion from any supported input format to any supported output format.

But, I am extremely curious about why you need this. What is different about your input format plugin for comics that is specific to MOBI? Are you sure these are useful for other other formats? Or is it effectively just setting options for the comic processing that you know work well for MOBI on the devices you read on?
davidfor is offline   Reply With Quote
Old 10-29-2020, 10:26 PM   #4
pavel1
Junior Member
pavel1 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Oct 2020
Device: Kindle Oasis
Thank you for the answer

Quote:
Originally Posted by davidfor View Post
But, I am extremely curious about why you need this. What is different about your input format plugin for comics that is specific to MOBI?
I'm trying to port the Kindle Comic Converter as a calibre plugin. The problem with the calibre conversion is that my Kindle Oasis always has margins around the images when I convert with Calibre while the comics look way better when I convert them via the Kindle Comic Converter (they first pack it into an epub file and then they convert it into mobi with kindlegen).
pavel1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mass conversion on specific file type. C Alberga Conversion 2 08-20-2016 11:18 PM
[Conversion Input] LaTeX Formulas Input Conversion Plugin sevyls Plugins 0 03-23-2015 05:52 AM
CSS conversion from a plugin jgoguen Development 1 02-12-2013 11:11 PM
Can I make MOBI the default conversion file type? madelonw Calibre 2 02-06-2013 09:27 PM
Cbr to PDF conversion type quality and filesize PaulFraser Conversion 0 05-28-2012 07:02 AM


All times are GMT -4. The time now is 10:48 PM.


MobileRead.com is a privately owned, operated and funded community.