Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-15-2017, 07:13 PM   #1
tph
Junior Member
tph began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2017
Device: Kindle
Unhappy azw3 comic not rendering

I have an azw3 file for a comic, which displays normally in the Kindle app on my phone. When I load it into Calibre I find a bunch of non-pages (I hit page down and the display is white, page number doesn't increment, but if I do it enough times I get to the next page) and I find some corrupted pages (display all black or with a partial image.

I am at a loss on how to handle this. Any guidance could help.

Calibre 1.25.0 on Ubuntu.
tph is offline   Reply With Quote
Old 07-15-2017, 07:26 PM   #2
tph
Junior Member
tph began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2017
Device: Kindle
Same happens on Calibre 3.4

I could see the blank pages being due to Amazon's panel mode doing something strange, but the corrupted pages?
tph is offline   Reply With Quote
Advert
Old 07-15-2017, 07:39 PM   #3
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,075
Karma: 10563148
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@tph- try reading in a different program - preferably one from Amazon. Some Kindle formats have unbreakable DRM and other hindrances to reading their books.

If you find one, use calibre's Open With feature to view it from calibre GUI. It's in View->View specific format, select AZW3, click Open With button (bottom left).

BR
BetterRed is offline   Reply With Quote
Old 07-15-2017, 10:34 PM   #4
jhowell
Wizard
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: 2,349
Karma: 24554618
Join Date: Nov 2011
Location: Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Comics in AZW3 format use a fixed layout that is proprietary to Amazon and not supported by calibre.
jhowell is online now   Reply With Quote
Old 07-15-2017, 11:22 PM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Your best bet is to simply opent h azw3 file in the calibre editor selecta ll the images files, rght click and export them to a folder on your computer and zip that folder up into a cbz file, which calibre (and other software) can convert/view.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-01-2018, 10:43 AM   #6
DavidG42
Junior Member
DavidG42 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Location: Hong Kong
Device: Kindle Paperwhite
Quote:
Originally Posted by kovidgoyal View Post
Your best bet is to simply opent h azw3 file in the calibre editor selecta ll the images files, rght click and export them to a folder on your computer and zip that folder up into a cbz file, which calibre (and other software) can convert/view.
Although it's a year old, this thread seems closest to what I'm looking for. Trying to keep the info in one place ...

[Edited to add: I am trying to extract all the page images from a 300 page / 74MB comic which I have as an AZW3 file. The Calibre conversion from AZW3 to any other format falls over (with a "memory error" although the resource monitor shows only 40% of memory used) so extracting the images seems like a sensible idea since I want to end up with a CBZ anyway.]

In my case, all the images have names in random order. For example, in part0001.html (the second html component of the book) the referenced image file is 00159.jpeg. And this is shown as page 14 according to the page number in image. (So presumably its sequence position in the book is something greater than 14 since there would be pages before the offical "Page 1".) So, is there a way to rename all the image files so that they will sort in order in the file system or in a CBZ when opened by a typical CBZ reader?

(You'll probably realise I don't know much about this.)

Last edited by DavidG42; 10-01-2018 at 10:58 AM.
DavidG42 is offline   Reply With Quote
Old 10-01-2018, 10:45 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Select al limage files, right click, choose bulk rename and rename in book order
kovidgoyal is offline   Reply With Quote
Old 10-01-2018, 11:27 AM   #8
DavidG42
Junior Member
DavidG42 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Location: Hong Kong
Device: Kindle Paperwhite
I really appreciate the effectively immediate response.

Unfortunately "AZW3 books do not support file renaming as they do not use file names internally. The filenames you see are automatically generated from the internal structures of the original file." according to the resulting error message.
DavidG42 is offline   Reply With Quote
Old 10-01-2018, 12:17 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Convert to epub first and edit that then you will be able to rename files.
kovidgoyal is offline   Reply With Quote
Old 10-01-2018, 12:36 PM   #10
DavidG42
Junior Member
DavidG42 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Location: Hong Kong
Device: Kindle Paperwhite
Ah, I was afraid you would say that. Unfortunately the conversion from AZW3 to anything else always falls over at 47% complete with:

Quote:
[ ... ]
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 195, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 1209, 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
I guess my next step is to file an error report on the conversion. That's a job for another day, as it's rather late in this time zone.

Thanks for suggestions.
DavidG42 is offline   Reply With Quote
Old 10-02-2018, 12:37 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,470
Karma: 10205098
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
switch to using calibre 64bit and you should be fine.
kovidgoyal is offline   Reply With Quote
Old 10-02-2018, 09:30 AM   #12
DavidG42
Junior Member
DavidG42 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Apr 2017
Location: Hong Kong
Device: Kindle Paperwhite
Ummm ... now I will go and hide in a corner with a red face.

Somehow in the years I have been using Calibre I never noticed that there is a 64-bit version and I'm not using it. I've had 64-bit systems for a long time ... but not a 64-bit Calibre.

The epub conversion went through successfully this time, so I will now have a look at the image renaming and extraction process again.

THANK YOU!
DavidG42 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a lot of .cbz files to azw3 with comic book processing lleal Conversion 1 11-15-2015 10:39 PM
Bulk azw3 to azw3 classofbond Conversion 2 12-25-2013 01:45 AM
Annoying comic rendering in PW 5.3.0 duelle Kindle Developer's Corner 7 12-05-2012 05:04 PM
Font rendering with FW 2.0 Jellby Bookeen 1 01-03-2010 12:47 PM


All times are GMT -4. The time now is 02:33 PM.


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