View Single Post
Old 04-27-2011, 05:53 AM   #108
Dopedangel
Wizard
Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.Dopedangel ought to be getting tired of karma fortunes by now.
 
Dopedangel's Avatar
 
Posts: 1,761
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
Quote:
Originally Posted by kiwidude View Post
@Perkin,

The whole issue of covers in epubs is a murky one, if my understanding from previous threads on this is correct. This is again perhaps something that Idolse could answer way better than me. Certainly it would be nice to be able to check for books with a cover and books without a cover. I think the problem is the definition of what is a "cover", as commercial epubs could have some filename that doesn't look like any of those you suggested.

I do 100% agree that the ability to remove (or in my case add if not present) a cover would be useful without having to go down the conversion route. There are occasions where I get concerned that an epub -> epub conversion may "harm" the file in some other way particularly if it has never been subjected to such a conversion previously. For example making sure that it doesn't resplit pages on headings etc. I just don't know enough about the voodoo that happens when you hit convert to know whether with default options set it is anything to be concerned about or not. Undoubtedly there are people who have posted in the past about Calibre "messing" with their epub in some bad way in some particular situation but whether that is a now historical bug issue, user error or something else I have no idea. The whole "Tweak Epub" feature allows you to (manually) make such adjustments or fiddle with the css of course.
I would also like to check if the cover has svg code or not and add if it doesn't here is the sample of the svg code. Also the ability to disable\enable aspect ratio. Another thing if you do a epub to epub conversion and it already has a cover.jpg the new cover is named cover1.jpg even if you use remove the first image option.

Code:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="100%" height="100%" viewBox="0 0 500 749" preserveAspectRatio="none">
                <image width="500" height="749" xlink:href="cover1.jpeg"/>
            </svg>
Dopedangel is offline   Reply With Quote