Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 07-25-2025, 02:02 AM   #1036
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 74,022
Karma: 315160596
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
Quote:
Originally Posted by jhowell View Post
I am traveling right now but I will look into it when I get back. It would be very helpful to know the ASIN of the book.
I suspect it's this one:

https://www.amazon.co.uk/dp/B07DF9CLGB/

Which is the Penguin Classics Kindle edition.
pdurrant is offline   Reply With Quote
Old 07-25-2025, 05:27 AM   #1037
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by jhowell View Post
I am traveling right now but I will look into it when I get back. It would be very helpful to know the ASIN of the book.
Much appreciated - thank you. The ASIN is B07DF9CLGB.
HarryT is offline   Reply With Quote
Old 07-25-2025, 05:28 AM   #1038
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by pdurrant View Post
I suspect it's this one:

https://www.amazon.co.uk/dp/B07DF9CLGB/

Which is the Penguin Classics Kindle edition.
Yes, it is. Thanks, Paul.
HarryT is offline   Reply With Quote
Old 07-25-2025, 06:21 AM   #1039
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,183
Karma: 105212035
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
The "house full of random swimming birds" more often needs their ebooks fixed than any others I buy, inc SP titles.
Quoth is offline   Reply With Quote
Old 07-25-2025, 12:02 PM   #1040
bustacap
PC Dev
bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.
 
bustacap's Avatar
 
Posts: 53
Karma: 35532
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
Quote:
Originally Posted by JSWolf View Post
On your PW5, do you see the images with the same problem with the KFX version?
fully zoomed in, on dark pages in 2-page view (so i can better see the white line), i cant tell its there, both with the book directly downloaded on the kindle and the kfx downloaded on pc and copied there with calibre.

it only really becomes noticeable when converted from the pdf based kfx to epub (or cbz). my guess is that that sub pixel line gets "amplified" by whatever pdf conversion method this plugin uses (maybe a different cropping box than "artbox" or "cropbox" or it just behaves differently than mutool).

another look zoomed in 6400% into the pdf page, see the tiny white line at the right and bottom (which are likely part of the original, its just that they get more pronounced when converted to epub/cbz):
https://s1.directupload.eu/images/250725/fboj3g6k.png
bustacap is offline   Reply With Quote
Old 07-27-2025, 04:07 AM   #1041
Jaws
JCL Punch-Card Collector
Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.Jaws is out to avenge the death of his or her father, Domingo Montoya.
 
Posts: 78
Karma: 34468
Join Date: Jun 2014
Location: Antarctica
Device: Aggressively Device Independent
Quote:
Originally Posted by HarryT View Post
Much appreciated - thank you. The ASIN is B07DF9CLGB.
Jumping to that ASIN showed a possible source of the problem: It's a UK-origin book. Which means that in the printed edition, the US page sizes (and often ledding) are different — and due to the flightless bird's process, that's going to present problems with doing a conversion-from-a-conversion. My suspicion, which I can't prove but is consistent with another publisher's problems, is that their internal stylesheets accessed from their typesetting programs have hardcoded metric measurements that get converted to hardcoded "English" measurements for US editions (and ebooks "fulfilled to the US"), even though not visible, and then things go haywire at random deep in the decimal places...
Jaws is offline   Reply With Quote
Old 07-27-2025, 12:33 PM   #1042
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,556
Karma: 93383099
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by Jaws View Post
Jumping to that ASIN showed a possible source of the problem: It's a UK-origin book. Which means that in the printed edition, the US page sizes (and often ledding) are different — and due to the flightless bird's process, that's going to present problems with doing a conversion-from-a-conversion. My suspicion, which I can't prove but is consistent with another publisher's problems, is that their internal stylesheets accessed from their typesetting programs have hardcoded metric measurements that get converted to hardcoded "English" measurements for US editions (and ebooks "fulfilled to the US"), even though not visible, and then things go haywire at random deep in the decimal places...
It’s a British book. I’m in the UK. I bought the book from Amazon UK. I don’t understand why anything involving US measurements would be involved? I collect the Penguin Classics series and over the years I’ve bought well over a hundred books in the range. I’ve never had any issue with one prior to this.

Last edited by HarryT; 07-27-2025 at 12:38 PM.
HarryT is offline   Reply With Quote
Old 07-31-2025, 10:56 AM   #1043
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,091
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by bustacap View Post
is there a way to fix these 1-2 pixel borders on the right and bottom edge when converting from kfx to epub using the from kfx menu?
Quote:
Originally Posted by bustacap View Post
all images in several comics and manga by different (german) publishers. the azw3 versions of the same titles (when they were still available) didnt have this and the versions on the webreader dont have this either (not that i can tell anyway).
the from kfx log says theyre pdf. using mutool (tested with both artbox and cropbox) on the pdf doesnt leave that pixel edge. looking at the pdf, there seems to be a tiny sub pixel (<1/10th maybe) line
The KFX Input plugin uses calibre's built-in "page_images" PDF to JPEG conversion routine which in turn uses pdftoppm included with calibre.

I have looked at several books available to me in KFX format that use PDF as the internal image format. So far I have not seen the problem you describe in the JPEG files produced when converting those to EPUB using From KFX.

In order to research this further I would need access to a book that exhibits the problem. Posting copyrighted material is not allowed here on MobileRead but if you PM me a link to somewhere I can download one the those KFX files I will look into it.
jhowell is offline   Reply With Quote
Old 07-31-2025, 02:05 PM   #1044
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,091
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by HarryT View Post
I’ve bought the book “The Nichomachean Ethics” by Aristotle (Penguin Classics). The book displays correctly in the Kindle app on my iPad. I imported the book successfully into Calibre using the KFX Import plugin. Attempting to convert to ePub fails with numerous lines similar to:

calibre, version 8.7.0
ERROR: KFX conversion failed: <p><b>Cannot convert The Nicomachean Ethics (Penguin Classics)</b><br/><br/>Exception('box-align right with float right in /cKS.xhtml\nbox-align right with float right in /cKS.xhtml...
Since that book is available in the US I was able to examine it to see what is going wrong with the conversion from KFX.

The problem is in how the numbers placed to the right of the text throughout the book are handled. The publisher used unusual HTML formatting to achieve this. It is rendered properly in KF8/AZW3 format. However Amazon's conversion of the book to KFX alters the formatting, causing the numbers to become embedded within the text instead of being kept separate.

The next release of this plugin will no longer produce an error when that unexpected formatting is encountered. Unfortunately conversion will still result in incorrect placement of the numbers, matching how the book renders in KFX.
jhowell is offline   Reply With Quote
Old 08-02-2025, 11:25 AM   #1045
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,091
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by bustacap View Post
is there a way to fix these 1-2 pixel borders on the right and bottom edge when converting from kfx to epub using the from kfx menu?
I compared the images produced from the book you supplied with one that works properly for me. I could not find anything significant in the corresponding PDF files except that your book uses significantly higher resolution images. At this point all I can say is that pdftoppm, which is used to perform PDF page to image conversion, does a better job on my book than on yours.

I did notice that the pages in both your book in mine are actually JPEG images encapsulated in PDF. I will look into changing the plugin to detect this situation and if so simply extract the JPEG. That would result in the best image quality possible.

I am not sure when I will have time to do that. I will be busy with other things for at least the next week.
jhowell is offline   Reply With Quote
Old 08-02-2025, 12:52 PM   #1046
bustacap
PC Dev
bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.bustacap turned on, tuned in, and dropped out.
 
bustacap's Avatar
 
Posts: 53
Karma: 35532
Join Date: Sep 2024
Device: Kindle Paperwhite (11th Gen), Lenovo Tab M10 (3rd Gen)
Quote:
Originally Posted by jhowell View Post
I compared the images produced from the book you supplied with one that works properly for me. I could not find anything significant in the corresponding PDF files except that your book uses significantly higher resolution images. At this point all I can say is that pdftoppm, which is used to perform PDF page to image conversion, does a better job on my book than on yours.

I did notice that the pages in both your book in mine are actually JPEG images encapsulated in PDF. I will look into changing the plugin to detect this situation and if so simply extract the JPEG. That would result in the best image quality possible.

I am not sure when I will have time to do that. I will be busy with other things for at least the next week.
thank you for checking it out and finding a way to fix the issues i was having
bustacap is offline   Reply With Quote
Old Yesterday, 03:30 PM   #1047
kennyc
The Dank Side of the Moon
kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.
 
kennyc's Avatar
 
Posts: 35,907
Karma: 119230421
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
Thank you so much for this @Jhowell !!
I just today gave this a try in order to do the end-around to Amazon's killing book downloads. Worked like a charm once I realized I had to import into Calibre directly from the Kindle in question (rather than copying the file over and then importing).

Plan to try it on a new purchase shortly.

Thank You!!
kennyc is offline   Reply With Quote
Old Yesterday, 05:20 PM   #1048
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,091
Karma: 91592869
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by kennyc View Post
Plan to try it on a new purchase shortly.

Thank You!!
Best to do it as you purchase books. You never can tell when Amazon will decide to create new roadblocks.

You’re welcome!
jhowell is offline   Reply With Quote
Old Yesterday, 05:24 PM   #1049
kennyc
The Dank Side of the Moon
kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.kennyc ought to be getting tired of karma fortunes by now.
 
kennyc's Avatar
 
Posts: 35,907
Karma: 119230421
Join Date: Sep 2009
Location: Denver, CO
Device: Kindle2; Kindle Fire
Quote:
Originally Posted by jhowell View Post
Best to do it as you purchase books. You never can tell when Amazon will decide to create new roadblocks.

You’re welcome!
Yes, understand....that has been my methodology from the beginning.
kennyc is offline   Reply With Quote
Old Yesterday, 05:48 PM   #1050
tomsem
Grand Sorcerer
tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.tomsem ought to be getting tired of karma fortunes by now.
 
Posts: 6,949
Karma: 27060153
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
Having a couple of issues with this 'flavor' of KFX, e.g.:

https://www.amazon.com/gp/product/B0DJSQKJG5/

These evidently were Fixed Layout EPUBs that the publisher submitted to Kindle store, and they get converted to fixed layout KFX when downloaded to Kindles or the Kindle apps. These are sorta 'coffee table books- whose print editions would be larger than letter size pages, with 2 page spreads.

Unlike comic book format, they contain 'positioned' text in the XHTML files. On ePub platforms, you're usually able to search, and fonts are embedded so that the text remains crisp when zooming in.

On Kindle platform (at least books from this publisher) the embedded fonts are gone, hyperlinks and text search are not supported (even though Kindles will happily spend time indexing them). But they are defined in the downloaded file.

In the past, I would download AZW3 and convert to fixed layout ePub with KindleUnpack. (I can still do this using my Kindle Touch, even though it's impossible to actually read the book on it!). These do contain the positioned text and hyperlinks of the original ePub.

But with KFX, From KFX conversion to ePub (or PDF) currently mishandles the text and hyperlinks.

In the ePub, the text is put inside a <div> tag's alt= property, the positioning is lost, and can no longer be target of text search. Hyperlinks are not instantiated.

In PDF, I can see text objects with Acrobat object inspection but they are not placed over the word images they correspond to, and there are PDF links but they do not work (see attached screenshot).

So the information is in there, but is lost in translation. It would be nice if it was not, but I would rank it a low priority on your feature backlog, given this is kind of an edge case.

----

In the future I will think more about purchasing these from Kobo. I did so in this case ($1.99 today).

The ePub version has embedded fonts, so it will look better when viewed in some ePub app, and also it can be searchable (but seems this is not supported on Kobo platform).

However converting for use on Kindle platform is proving onerous. Send To Kindle does not have good support for fixed layout ePub, in this case it totally mangled it.

Calibre got to 47% and seems to be stuck there. I finally killed the job after 3 hours.

Kindle Previewer puked on it, without even producing error log.

calibre Edit reports a number of problems, but Apple Books and Thorium render it without any problems. My PocketBook InkPad C 3 has some serious problems with it, though. I added this from my Kobo Clara where it gets converted from KePub to ePub - I also tried ACSM method to download ePub, but results were the same (calibre quickly gets to 47% with conversion to AZW3 and then gets stuck; PocketBook doesn't render it correctly).
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-08-03 at 10.05.23 AM.png
Views:	7
Size:	217.7 KB
ID:	217267  

Last edited by tomsem; Yesterday at 08:40 PM.
tomsem is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KFX conversion, transfer back to library issue. shoelesshunter Conversion 9 04-13-2025 11:15 AM
[Conversion Input] Microsoft Doc Input Plugin igi Plugins 77 03-08-2025 04:04 AM
[Conversion Input] LaTeX Formulas Input Conversion Plugin sevyls Plugins 0 03-23-2015 05:52 AM
[Input Plugin] DOCX Input SauliusP. Plugins 42 06-05-2013 04:01 AM
Looking For MHT Input Conversion Plugin FlooseMan Dave Plugins 4 03-30-2010 05:52 PM


All times are GMT -4. The time now is 05:20 PM.


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