Ah you are talking about manipulating the HTML/SVG wrapper around the cover. Yeah that would require code duplication. I though you just meant replacing the cover in the epub for which you can use metadata.epub, however it only works if the epub defines a raster cover.
|