Quantcast
Channel: MobileRead Forums - Conversion
Viewing all 3899 articles
Browse latest View live

Converting mobi to epub distorts jpeg files

$
0
0
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?

Attached Thumbnails
Click image for larger version

Name:	mobiimage.jpg
Views:	N/A
Size:	214.2 KB
ID:	168495   Click image for larger version

Name:	epubimage.jpg
Views:	N/A
Size:	218.1 KB
ID:	168496  

Conversion stalls

$
0
0
Greetings all,

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!


calibre Debug log

Spoiler:

calibre 3.35 embedded-python: True is64bit: True
Darwin-18.2.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.2.0', 'Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.14.2', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 1) && EpubCheck (0, 1, 4) && KindleUnpack - The Plugin (0, 81, 5)
calibre 3.35 embedded-python: True is64bit: True
Darwin-18.2.0-x86_64-i386-64bit Darwin ('64bit', '')
('Darwin', '18.2.0', 'Darwin Kernel Version 18.2.0: Mon Nov 12 20:24:46 PST 2018; root:xnu-4903.231.4~2/RELEASE_X86_64')
Python 2.7.12
OSX: ('10.14.2', ('', '', ''), 'x86_64')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 1) && EpubCheck (0, 1, 4) && KindleUnpack - The Plugin (0, 81, 5)
devicePixelRatio: 2.0
logicalDpi: 72.0 x 72.0
physicalDpi: 143.000002148 x 143.000002148
Using calibre Qt style: True
[0.00] Starting up...
[0.02] Showing splash screen...
[0.15] splash screen shown
[0.15] Initializing db...
[0.16] db initialized
[0.16] Constructing main UI...
[0.98] main UI initialized...
[0.98] Hiding splash screen
[1.02] splash screen hidden
[1.03] Started up in 1.03 seconds with 0 books
objc[3195]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff9ad05210) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x11e205dc8). One of the two will be used. Which one is undefined.
DeDRM v6.6.1: Trying to decrypt B00I8XF5NI_EBOK.azw4
Using Library AlfCrypto DLL/DYLIB/SO
MobiDeDrm v0.42.
Copyright © 2008-2017 The Dark Reverser, Apprentice Harper et al.
Decrypting Mobipocket 4 ebook: Applied Statistics and Probability for Engineers, 6th Edition
Got DSN key from database default_key
Found 4 keys to try after 0.1 seconds
Crypto Type is: 2
File is encoded with PID ds0BrLhCHC.
Decrypting. Please wait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . done
Decryption succeeded after 0.6 seconds
DeDRM v6.6.1: Finished after 0.7 seconds
Added Applied Statistics and Probability for Engineers, 6th Edition to db in: 0.1
Added 1 books in 1.2 seconds
2018-12-19 15:07:06.743 Calibre[3213:609965] deliverNotificationWithTitle()
* Notification delivered.
Worker Launch took: 0.0848431587219
Job: 1 Convert book 1 of 1 (Applied Statistics and Probability for Engineers, 6th Edition) finished
Convert book 1 of 1 (Applied Statistics and Probability for Engineers, 6th Edition)
Conversion options changed from defaults:
verbose: 2
read_metadata_from_opf: u'/var/folders/k_/1bmq8kzs0tqcrsq9g1m66_200000gn/C/calibre_3.35.0_tmp_i3j8Dq/emA72B.opf'
output_profile: 'generic_eink'
cover: u'/var/folders/k_/1bmq8kzs0tqcrsq9g1m66_200000gn/C/calibre_3.35.0_tmp_i3j8Dq/Iv1AlK.jpeg'
Resolved conversion options
calibre version: 3.35.0
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((chapter|book|section|part)\\s+)|((prolog|pr ologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/var/folders/k_/1bmq8kzs0tqcrsq9g1m66_200000gn/C/calibre_3.35.0_tmp_i3j8Dq/Iv1AlK.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_split_on_page_breaks': False,
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'epub_flatten': False,
'epub_inline_toc': False,
'epub_toc_at_end': False,
'epub_version': u'2',
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'flow_size': 260,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x10fc3ce10>,
'insert_blank_line': False,
'insert_blank_line_size': 0.5,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'no_chapters_in_toc': False,
'no_default_epub_cover': False,
'no_inline_navbars': False,
'no_svg_cover': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x10fc4e250>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': False,
'pretty_print': True,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/var/folders/k_/1bmq8kzs0tqcrsq9g1m66_200000gn/C/calibre_3.35.0_tmp_i3j8Dq/emA72B.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_reading_at': None,
'subset_embedded_fonts': False,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'transform_css_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: AZW4 Input running
on /var/folders/k_/1bmq8kzs0tqcrsq9g1m66_200000gn/C/calibre_3.35.0_tmp_i3j8Dq/Lh7di1.azw4
Extracting PDF from AZW4 Container...
Converting file to html...
pdftohtml log:
Page-1
Page-2
Page-3
Page-4
Page-5
Page-6
Page-7
Page-8
Page-9
Page-10
Page-11
Page-12
Page-13
Page-14
Page-15
Page-16
Page-17
link to page 23 link to page 24 link to page 26 link to page 26 link to page 26 link to page 27 link to page 27 link to page 28 link to page 30 link to page 33 link to page 33 link to page 34 link to page 34 link to page 37 link to page 38 link to page 38 link to page 38 link to page 39 link to page 42 link to page 44 link to page 52 link to page 52 link to page 57 link to page 57 link to page 62 link to page 62 link to page 67 link to page 71 link to page 71 link to page 79 link to page 79 link to page 87 link to page 88 link to page 88 link to page 89 link to page 93 link to page 93 link to page 96 link to page 100 link to page 100 link to page 102 link to page 102 link to page 108 link to page 108 link to page 115 link to page 115 link to page 120 link to page 120 link to page 129 link to page 130 link to page 130 link to page 130 link to page 134 link to page 134 link to page 136 link to page 138 link to page 138 link to page 141 link to page 141 link to page 150 link to page 155 link to page 155 link to page 161 link to page 161 link to page 165 link to page 167 link to page 170 link to page 177 link to page 178 link to page 178 link to page 178 link to page 181 link to page 183 link to page 186 link to page 189 link to page 196 link to page 196 link to page 201 link to page 201 link to page 201 link to page 203 link to page 206 link to page 206 link to page 210 link to page 210 link to page 213 link to page 213 link to page 221 link to page 222 link to page 222 link to page 228 link to page 228 link to page 235 link to page 235 link to page 239 link to page 239 link to page 241 link to page 241 link to page 247 link to page 247 link to page 252 link to page 252 link to page 261 link to page 262 link to page 262 Page-18
link to page 263 link to page 271 link to page 271 link to page 271 link to page 273 link to page 273 link to page 274 link to page 276 link to page 278 link to page 278 link to page 278 link to page 280 link to page 286 link to page 293 link to page 295 link to page 295 link to page 298 link to page 299 link to page 299 link to page 301 link to page 304 link to page 305 link to page 306 link to page 309 link to page 313 link to page 318 link to page 318 link to page 318 link to page 319 link to page 319 link to page 319 link to page 320 link to page 327 link to page 328 link to page 328 link to page 328 link to page 330 link to page 335 link to page 336 link to page 338 link to page 340 link to page 344 link to page 344 link to page 347 link to page 351 link to page 353 link to page 353 link to page 358 link to page 362 link to page 363 link to page 365 link to page 366 link to page 366 link to page 366 link to page 369 link to page 372 link to page 372 link to page 372 link to page 376 link to page 376 link to page 379 link to page 379 link to page 380 link to page 384 link to page 386 link to page 387 link to page 389 link to page 395 link to page 396 link to page 398 link to page 399 link to page 401 link to page 405 Page-19
link to page 405 link to page 411 link to page 412 link to page 418 link to page 419 link to page 420 link to page 421 link to page 422 link to page 429 link to page 429 link to page 431 link to page 433 link to page 434 link to page 436 link to page 436 link to page 438 link to page 439 link to page 442 link to page 449 link to page 450 link to page 453 link to page 462 link to page 463 link to page 463 link to page 465 link to page 469 link to page 469 link to page 470 link to page 471 link to page 474 link to page 475 link to page 476 link to page 479 link to page 485 link to page 489 link to page 499 link to page 500 link to page 500 link to page 503 link to page 505 link to page 510 link to page 519 link to page 519 link to pageSyntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
522 link to page 528 link to page 528 link to page 529 link to page 530 link to page 533 link to page 533 link to page 536 link to page 539 link to page 539 link to page 541 link to page 544 link to page 551 link to page 561 link to page 562 link to page 563 link to page 563 link to page 564 link to page 571 Page-20
link to page 573 link to page 575 link to page 581 link to page 581 link to page 582 link to page 587 link to page 587 link to page 592 link to page 593 link to page 597 link to page 598 link to page 600 link to page 604 link to page 604 link to page 609 link to page 610 link to page 613 link to page 616 link to page 616 link to page 622 link to page 629 link to page 633 link to page 641 link to page 648 link to page 648 link to page 654 link to page 665 link to page 685 link to page 686 link to page 687 link to page 688 link to page 688 link to page 688 link to page 692 link to page 693 link to page 696 link to page 706 link to page 714 link to page 719 link to page 719 link to page 721 link to page 726 link to page 730 link to page 731 link to page 736 link to page 744 link to page 745 link to page 745 link to page 746 link to page 748 link to page 759 link to page 760 link to page 761 link to page 764 link to page 766 link to page 767 link to page 768 link to page 773 link to page 782 link to page 782 link to page 783 link to page 784 link to page 784 link to page 787 link to page 791 link to page 809 link to page 825 Page-21
Page-22
Page-23
Page-24
Page-25
Page-26
Page-27
Page-28
Page-29
Page-30
Page-31
Page-32
Page-33
Page-34
Page-35
Page-36
Page-37
Page-38
Page-39
Page-40
Page-41
Page-42
Page-43
Page-44
Page-45
Page-46
Page-47
Page-48
Page-49
Page-50
Page-51
Page-52
Page-53
Page-54
Page-55
Page-56
Page-57
Page-58
Page-59
Page-60
Page-61
Page-62
Page-63
Page-64
Page-65
Page-66
Page-67
Page-68
Page-69
Page-70
Page-71
Page-72
Page-73
Page-74
Page-75
Page-76
Page-77
Page-78
Page-79
Page-80
Page-81
Page-82
Page-83
Page-84
Page-85
Page-86
Page-87
Page-88
Page-89
Page-90
Page-91
Page-92
Page-93
Page-94
Page-95
Page-96
Page-97
Page-98
Page-99
Page-100
Page-101
Page-102
Page-103
Page-104
Page-105
Page-106
Page-107
Page-108
Page-109
Page-110
Page-111
Page-112
Page-113
Page-114
Page-115
Page-116
Page-117
Page-118
Page-119
Page-120
Page-121
Page-122
Page-123
Page-124
Page-125
Page-126
Page-127
Page-128
Page-129
Page-130
Page-131
Page-132
Page-133
Page-134
Page-135
Page-136
Page-137
Page-138
Page-139
Page-140
Page-141
Page-142
Page-143
Page-144
Page-145
Page-146
Page-147
Page-148
Page-149
Page-150
Page-151
Page-152
Page-153
Page-154
Page-155
Page-156
Page-157
Page-158
Page-159
Page-160
Page-161
Page-162
Page-163
Page-164
Page-165
Page-166
Page-167
Page-168
Page-169
Page-170
Page-171
Page-172
Page-173
Page-174
Page-175
Page-176
Page-177
Page-178
Page-179
Page-180
Page-181
Page-182
Page-183
Page-184
Page-185
Page-186
Page-187
Page-188
Page-189
Page-190
Page-191
Page-192
Page-193
Page-194
Page-195
Page-196
Page-197
Page-198
Page-199
Page-200
Page-201
Page-202
Page-203
Page-204
Page-205
Page-206
Page-207
Page-208
Page-209
Page-210
Page-211
Page-212
Page-213
Page-214
Page-215
Page-216
Page-217
Page-218
Page-219
Page-220
Page-221
Page-222
Page-223
Page-224
Page-225
Page-226
Page-227
Page-228
Page-229
Page-230
Page-231
Page-232
Page-233
Page-234
Page-235
Page-236
Page-237
Page-238
Page-239
Page-240
Page-241
Page-242
Page-243
Page-244
Page-245
Page-246
Page-247
Page-248
Page-249
Page-250
Page-251
Page-252
Page-253
Page-254
Page-255
Page-256
Page-257
Page-258
Page-259
Page-260
Page-261
Page-262
Page-263
Page-264
Page-265
Page-266
Page-267
Page-268
Page-269
Page-270
Page-271
Page-272
Page-273
Page-274
Page-275
Page-276
Page-277
Page-278
Page-279
Page-280
Page-281
Page-282
Page-283
Page-284
Page-285
Page-286
Page-287
Page-288
Page-289
Page-290
Page-291
Page-292
Page-293
Page-294
Page-295
Page-296
Page-297
Page-298
Page-299
Page-300
Page-301
Page-302
Page-303
Page-304
Page-305
Page-306
Page-307
Page-308
Page-309
Page-310
Page-311
Page-312
PageSyntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
Syntax Warning: Could not parse ligature component "0127" of "_0127" in parseCharName
-313
Page-314
Page-315
Page-316
Page-317
Page-318
Page-319
Page-320
Page-321
Page-322
Page-323
Page-324
Page-325
Page-326
Page-327
Page-328
Page-329
Page-330
Page-331
Page-332
Page-333
Page-334
Page-335
Page-336
Page-337
Page-338
Page-339
Page-340
Page-341
Page-342
Page-343
Page-344
Page-345
Page-346
Page-347
Page-348
Page-349
Page-350
Page-351
Page-352
Page-353
Page-354
Page-355
Page-356
Page-357
Page-358
Page-359
Page-360
Page-361
Page-362
Page-363
Page-364
Page-365
Page-366
Page-367
Page-368
Page-369
Page-370
Page-371
Page-372
Page-373
Page-374
Page-375
Page-376
Page-377
Page-378
Page-379
Page-380
Page-381
Page-382
Page-383
Page-384
Page-385
Page-386
Page-387
Page-388
Page-389
Page-390
Page-391
Page-392
Page-393
Page-394
Page-395
Page-396
Page-397
Page-398
Page-399
Page-400
Page-401
Page-402
Page-403
Page-404
Page-405
Page-406
Page-407
Page-408
Page-409
Page-410
Page-411
Page-412
Page-413
Page-414
Page-415
Page-416
Page-417
Page-418
Page-419
Page-420
Page-421
Page-422
Page-423
Page-424
Page-425
Page-426
Page-427
Page-428
Page-429
Page-430
Page-431
Page-432
Page-433
Page-434
Page-435
Page-436
Page-437
Page-438
Page-439
Page-440
Page-441
Page-442
Page-443
Page-444
Page-445
Page-446
Page-447
Page-448
Page-449
Page-450
Page-451
Page-452
Page-453
Page-454
Page-455
Page-456
Page-457
Page-458
Page-459
Page-460
Page-461
Page-462
Page-463
Page-464
Page-465
Page-466
Page-467
Page-468
Page-469
Page-470
Page-471
Page-472
Page-473
Page-474
Page-475
Page-476
Page-477
Page-478
Page-479
Page-480
Page-481
Page-482
Page-483
Page-484
Page-485
Page-486
Page-487
Page-488
Page-489
Page-490
Page-491
Page-492
Page-493
Page-494
Page-495
Page-496
Page-497
Page-498
Page-499
Page-500
Page-501
Page-502
Page-503
Page-504
Page-505
Page-506
Page-507
Page-508
Page-509
Page-510
Page-511
Page-512
Page-513
Page-514
Page-515
Page-516
Page-517
Page-518
Page-519
Page-520
Page-521
Page-522
Page-5

Images refuse to keep aspect ratio in pdf conversion

$
0
0
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.

Attached the 2 versions showing the problem

EPUB to AZW3: font sizes changed -- AGAIN!

$
0
0
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?

"Use saved conversion settings" -- why?

$
0
0
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?

Source 1 page TOC converts to 5 ugly pages

$
0
0
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.

Attached Files
File Type: pdf TOC page with text boxes.pdf (161.6 KB)

Unsuccessful conversion with image on page

$
0
0
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?

Attached Files
File Type: pdf page w image and caption.pdf (104.7 KB)
File Type: pdf converted EPUB page.pdf (78.1 KB)

ebook-convert output pdf with wrong chinese characters

$
0
0
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:

Mobi using the "both" option

$
0
0
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.

Any ideas?

Shari

The conversion don't import the images ! Why ?

$
0
0
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.

Calibre is not resizing images

$
0
0
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!

Epub to AZW3 failed,

$
0
0
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

Keep file name order the same after converting

$
0
0
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

Your help and guidance will be much appreciated

Can't erase Headers with Regex

$
0
0
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.

Mass Insertion of tags

$
0
0
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:

Many thanks.

pdf->epub - using idents as a cue to line-unwrapping

$
0
0
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?

ebook-convert as standalone

$
0
0
Possible to install "ebook-convert" standalone on Linux? Or is it too dependent on the other libs?

Adding an empty page after each chapter.

$
0
0
I'd like to add an empty page after each chapter to write down a few notes.

Is there a way to do this through the converter?

If not, how could it be done by css?

I'm converting EPUB to PDF.

Thanks

changing text-align: justified to left

$
0
0
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?

Calibre Xpath to start on cover

$
0
0
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:

<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="calibre:cover" content="true"/>
<title>Cover</title>
<style type="text/css" title="override_css">
@page {padding: 0pt; margin:0pt}
body { text-align: center; padding:0pt; margin: 0pt; }
</style>
</head>
<body>
<div>
<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 800 1200" preserveAspectRatio="none">
<image width="800" height="1200" xlink:href="cover.jpeg"/>
</svg>
</div>
</body>
</html>



Thank you!
Viewing all 3899 articles
Browse latest View live