I created a .mobi file using kindlegen. I can load the mobi into a kindle reader and the images (.jpeg) are not distorted. They appear to have the original resolution. When I using Calibre (latest version as of today), I kept the default options and the images look terrible in the epub file. Is there an option to prevent downsizing when converting to epub? Why can't the conversion process simply preserve what is already there?
I've attached screenshots of the two versions displaying the same image.
Thanks for your help. Is my only option to try to hack into the resulting epub file and replace the images?
I am trying to convert a kindle book I purchased into an epub. I am using the latest version of Calibre on a Mac, with Kindle for Mac v1.17 and I have the plug-ins DeDRM and Kindle Unpacked installed. The conversion starts, but then either gets stuck at 1% or sometimes 67%, but goes no further. Below is the log from Calibre. Please review and advise. Thanks in advance!
I have read the pdf sticky but this was written in 2011 and I'm hoping things have changed.
Besides this problem seems to have happened on one book in particular.
I just recently bought the full 7 volumes of Spike Milligan's memoirs - normally my conversions are epub and pdf however, on the first volume this refuses to handle the images correctly. The horizontal aspect is squashed in on all pictures where width is longer than height.
I have tried EVERYTHING. There is no real aspect control or resizing from what I can see - I came across the comic set up but nothing there works.
Setting output to Tablet doesn't work. Nothing appears to change this behaviour.
Having perused a few of the other volumes I failed to detect anything similar they appear to be reasonably ok although one other thing prevalent with the conversions in all cases is that the pictures / illustrations often are on page breaks and so the graphic gets cut on to two pages. This may or may not be a problem with pdf readers as I see this in the epub version but at least the view allows it to be set to flow thus keeping pictures intact.
Either way the pdf conversion of this one single volume is really strange and I don't understand why this is the only one of 7 that is affected in this way.
Also one thing in my tests were to try to convert a conversion but I don't really understand where or what is being converted. Firstly the kindle books are being picked up and in my calibre library I see a .azw3 / .epub / .pdf
however, when I convert there is no request for which version to convert. I wanted to try to convert the epub version as the aspect is correct and that would eliminate any problems perhaps originating in the original azw3 file.
Lastly I tried a plugin called prince pdf. This correctly created the images but there's no way to alter other settings the the conversion had other issues.
I had a problem earlier with this earlier (see this thread) which turned out to be due to not having checked "Disable font size rescaling" under Look & feel > Fonts.
Since then I have made this the default, and I spent three days reconverting all my EPUBs with "Use saved conversion settings" unchecked, to make sure that I don't get hit by a book which uses some old settings with font size rescaling enabled.
However, I now have another font size rescaling issue. One of my EPUBs (which looks perfectly normal) has <body> tags with no associated CSS. Looking at it with the Calibre editor, the "computed final style" text font size is 18pt (the usual default 1em size), but the converted AZW3 has <body class="calibre">, and the generated "calibre" CSS class contains a line which says "font-size: 12pt". On my Kindle, this is unreadably small, and I have to zoom in to size 11 (on a scale of 1 to 14) before it looks normal, which is size 4 for any other book.
I've looked at all the conversion settings and have tried various things to get rid of this (e.g. specifying a CSS rule for <body> with font-size: 1em in the EPUB), but it keeps insisting on generating an AZW3 with a 12pt font size, and the only way I can get rid of it is to manually edit the AZW3 after converting.
I've only found this one book with this problem so far, but I have no idea how many others might be affected...
Has anyone got any idea why this might be happening?
I keep my books as EPUBs, but auto-convert them to AZW3 when I copy them to my Kindle, and then delete the AZW3s so that if I have to fix anything, I won't end up editing the EPUB and then accidentally uploading the old unchanged AZW3 to the Kindle.
I've recently had to change a few conversion settings, and each change has meant spending about three days reconverting all my books to make sure the new settings "take" -- because if not, and I edit an EPUB and then upload it to the Kindle, it uses the saved conversion settings by default.
When I convert multiple books manually, I can uncheck the "Use saved conversion settings". When I convert a single book, I don't have this option (why not?) -- I can go through all the settings and make sure they're correct before converting, but I find it easier to pick another book and convert the two together so I can uncheck "Use saved conversion settings".
However, for autoconverting (when auto-adding, or saving to a device) it will always use the saved conversion settings. Which is why, after changing a setting, I have to spend three days converting everything again -- otherwise I'll edit the EPUBs for the books I'm proofing on the Kindle, and when I upload them again they'll be converted using the old settings. (And it's easier for me than trawling around on the Kindle to find books I've started looking at and then put down because something else has come along, and converting just those books.)
I've never found a situation where, after changing some conversion setting, I want to ignore the changes I just made and use the old settings instead -- I always want the new settings (that's why I changed them!). And even if a specific book needs unusual settings, I would have thought that would be the exception rather than the rule, and a per-book preference would make more sense in such a case.
Wouldn't it make more sense for "Use saved conversion settings" to be unchecked by default? Or at least have a tweak where you can specify the default setting?
I'm converting a newsletter in ODT format. The Table of Contents in the original is surrounded by multiple text boxes. It fits on one page and looks attractive. The output EPUB file has the text boxes spread over four pages and the TOC split between two pages.
What can I do to get an attractive one page TOC in the EPUB? It doesn't have to look identical to the ODT, just contain the same information. I'm attaching a PDF of the source TOC.
I'm converting an ODT file to EPUB. One page has an image with a caption that is less than a third of the page in width and height. The image in the output EPUB is truncated and does not have text flowing around it, as does the original. Is there something I can do to make the output look good?
Hello,
When I use ebook-convert to convert Chinese epub books to pdf, Chinese characters are abnormal. But it works well with mobi output. Am I missing something with pdf output options? :blink:
I'm not sure what I'm doing wrong, but recently when I do a conversion to mobi using the "both" option, it doesn't actually create "both", it *only* creates mobi format, with no kf8 version embedded as well. I'm running Windows 10, and I made sure that I am at the latest version of Calibre. I'm not sure when this stopped working, but it's been at least a few months since I last converted a book and it worked properly.
The Caliber convector is powerful, but I find it has a big flaw :
He doesn't import the images!
By "imported" I mean: extract from the source file and then integrate them into the final ePub without modification.
But that's the problem, before integrating the images, he modifies them: he reduces their size and compresses them too much (artifacts appearance).
The problem does not come from the extraction because when you create a ZIP version, the images are extracted correctly.
If this default behavior could be disabled, I wouldn't say anything, but it's not possible (a highlight of Caliber is its customizing)
All this forces me to have to manually replace the images in the ePub, task tedious and very unpleasant.
If this behaviour is not removed, an option for disabled this almost mandatory.
For some reason Calibre isn't resizing my images when I convert a .docx to an epub format. All of the forums that I find say it will automatically resize, but I've tried .png .jpg and .svg versions of the same image and they haven't been resizing. Instead they appear off the page. This doesn't really help, considering the main problem-image is a map.
The images will resize on an iPhone, iPad and MacOS iBooks, but not a Kobo ereader, even though the output type is set to Kobo.
My book is a novel with only black and white images and reflowable text. Help would be appreciated!
Hi, I've tried to post this once, but it seems I was logged out during writing, so I don't think it posted. Apologies if it did as this will largely be a duplicate.
I'm trying to convert an epub file to AZW3 and it failed. it first hung at 47% and I let it run through the night and it crashed after 11 hours. In the detailed log there was an error Message: Python function terminated unexpectedly (error code 1), it continued running and failed terminally With a memory error.
My computer is a 64bit Windows 10 machine With 16gb of RAM.
I then ran book check and there were over 200 errors related to the CSS Construct not being recognized.
The book is a 42GB Seientific book With many formulas.
I'm in Contact With the Publisher. Any idea what might be wrong?
The bottom part of the detailed Conversion output file is below:
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Python function terminated unexpectedly
(Error Code: 1)
Traceback (most recent call last):
File "site.py", line 101, in main
File "site.py", line 78, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 199, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 42, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 27, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1227, in run
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 215, in __call__
File "site-packages\calibre\ebooks\oeb\transforms\flatcss.py" , line 316, in stylize_spine
File "site-packages\calibre\ebooks\oeb\stylizer.py", line 226, in __init__
File "site-packages\css_selectors\select.py", line 177, in __call__
File "site-packages\css_selectors\select.py", line 195, in iterparsedselector
File "site-packages\css_selectors\select.py", line 389, in select_class
MemoryError
Please assist. I am new to Calibre and need some help. It might be something silly and easy, but after spending 9 hours on this alone, I am super frustrated and need an expert to explain to me how its done in noob language.
:help:
I want to convert my ebooks which is mostly epub to mobi, but my preferred display after I save it to my desktop is I want it converted and saved as Author - Title. Unfortunately, after I convert it saves the converted file to Title - Author.
I want it displayed as:
Jane Doe - How to stay calm.mobi
(author) - (title)
I don't want it like this
How to stay calm - John Doe.mobi
Hello. I'm new to this so I might be making some mistakes here but I'm trying to delete the headers of a PDF while converting it to MOBI.
In Search & Replace I'm searching for the following expression with no quote marks:
"<a id="p[0-9]+"></a>[0-9]+<br>Introduction<br>"
Calibre shows me there are 3 instances of this.
For replacement text I use blank or "", I have tried both.
I then Add it to the list.
When I convert the book the header is there in the middle of the text together with the page number.
Am I missing a step here? What should I use as replacement text to erase it?
Thanks.
EDIT: Just realized there is a conversion subforum a bit down, sorry about posting in the wrong section.
Hello, all. Author here, NOT a techie. I've been happily and successfully using Calibre to create my ebooks for years, and in the past whenever I've run into problems I just hack through it with trial and error until I figure it out. But this one has me stumped.
The latest version of Calibre (just downloaded yesterday) is responding to my p class = chapter and p class = title paragraphs by inserting <a> before each one and then </a> immediately after the next occurring </p>. This results in some ereaders showing pretty much the whole book as a hyperlink, besides throwing pages and pages of validation errors.
I code my text files in jedit, convert to html, then feed that file into Calibre for conversion to epub. The problem described happens ONLY in files for boxed sets that have a 2-tiered TOC structure (Title & Chapter tiers). Books with a simple structure 1-tier TOC do not have this problem, even with identical coding in the frontmatter. The only other difference I can see in the affected books is that they contain bookmark codes to connect internal text links with images (book covers) later in the document.
In one case, an html file converted by Calibre a year ago was fine, but the exact same file converted now with the new Calibre produces the problem.
I can and have removed the unwanted tags manually within the edit function. But I don't need to tell you what a PITA that is. :help:
I'm using latest Calibre to convert pdf to epub. Using default settings, all of my paragraphs are split into multiple paragraphs. But all paragraphs are clearly indented, so I'm not sure why Calibre is having troubles. I don't want to adjust "unwrap factor", as it's relies on line ending early and therefore inexact. How to force Calibre into taking indents into account when determining paragraph breaks? If it's not possible, are there any other tool that have that option?
I've downloaded a bunch of books from project gutenberg and some have a stylesheet/css file that contains
body {
margin: 5%;
background: #faebd0;
text-align: justified
}
Others don't have a text-align in the body section.
I prefer a ragged-right margin. If I append the following to the css file that should do it.
body {
text-align: left;
}
That seems like the simplest solution. Or, to every .html file that's the body of the book add before the closing </head> tag the following.
<style>
body {text-align: left;}
</style>
What's the best way to get ragged right if there is a better way than my above two ideas, and if appending to the css file is a good way, how can I do that automatically when I add books to my library?
I'm trying to figure out what to put in the "Start reading at (XPath expressions)" to get my book to start reading at the cover page. Here's the code for the cover page: