View Single Post
Old 05-25-2012, 11:21 AM   #263
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,733
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Beta for next version - insert/replace & delete covers

Alrighty then... after an absolutely horrific number of hours of trawling through thousands of lines of calibre conversion pipeline code and rewriting to the specific needs of this plugin, here at last is a feature that has been "on the list" since the plugin was first incepted - the ability to insert/replace covers for an ePub (without doing a conversion obviously). Yay...

And while I was at it I also added a "Remove existing cover" option, for those of you who had converted text files or whatever and want to rip out the calibre generated covers without reconverting.

You will need calibre 0.8.53 to install this beta, because the plugin needs a fix in the calibre code Kovid kindly sorted for me. However you really should be upgrading to this release anyways - in recent weeks Kovid has made a number of important fixes/changes to the ePub conversions which address some of the problems it used to have - mucho thanks!

The plugin has various ways of attempting to identify a cover page, removing what it can safely for it, inserting a new cover page (respecting your default options for whether to use SVG or not), rescaling the cover image if required, updating any TOC entry and setting all the appropriate internal manifest data including the device specific workarounds that calibre's conversion pipeline does.

I've also rewritten a few of the other features (removing unused image files and remove broken covers) and quite a number of bits of the core in order to do the job "properly". So if you spot any other features broken, please yell. Likewise it would be great to hear from any Mac OS/Unix users to verify these features still work for them since I can only test it on Windows...

Needless to say make sure you have a backup of your ePub before trialling the new features in this beta phase in case you hit a combination I haven't tested yet.

If you have a problem, just PM me a link to the ePub in its *before* state so I can easily replicate it. Thanks for the help with testing...
Attached Thumbnails
Click image for larger version

Name:	Screenshot_NewOptions.png
Views:	338
Size:	33.9 KB
ID:	86860   Click image for larger version

Name:	EditMetadata.png
Views:	293
Size:	107.3 KB
ID:	87177   Click image for larger version

Name:	Win7EditMetadata.png
Views:	296
Size:	258.7 KB
ID:	87183  

Last edited by kiwidude; 06-01-2012 at 02:07 PM. Reason: DO NOT DOWNLOAD THIS ZIP - sending code to home
kiwidude is offline   Reply With Quote