Quantcast
Channel: MobileRead Forums - Conversion
Viewing all articles
Browse latest Browse all 3900

Prevent image conversion

$
0
0
Hello

As part of our workflow we convert our EPUB files to Word docx to send to our reviewers for updating.

We have been using Calibre to do this. However, we changed our image format to SVG last year and now the text in the images appears in single lines rather than in text boxes, when converting to DOCX.

It looks like Calibre converts the SVG images to PNG during the conversion process.

Is there a way to prevent Calibre from converting images?

I have attached the EPUB file, the converted DOCX file, a screen shot showing the problem image in Word and a copy of the original SVG file.

Here is the conversion log:
Spoiler:

Convert book 1 of 1 (SVG and MathML tests)
Conversion options changed from defaults:
cover: '/var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/dkaqio_0.jpeg'
output_profile: 'generic_eink'
read_metadata_from_opf: '/var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/1ynaf_mk.opf'
docx_no_cover: True
preserve_cover_aspect_ratio: True
docx_no_toc: True
verbose: 2
docx_page_size: 'a4'
Resolved conversion options
calibre version: 6.19.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': 'original',
'chapter': "//*[((name()='h1' or name()='h2') and re:test(., "
"'\\s*((chapter|book|section|part)\\s+)|((prolog|p rologue|epilogue)(\\s+|$))', "
"'i')) or @class = 'chapter']",
'chapter_mark': 'pagebreak',
'comments': None,
'cover': '/var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/dkaqio_0.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'docx_custom_page_size': None,
'docx_no_cover': True,
'docx_no_toc': True,
'docx_page_margin_bottom': 72.0,
'docx_page_margin_left': 72.0,
'docx_page_margin_right': 72.0,
'docx_page_margin_top': 72.0,
'docx_page_size': 'a4',
'duplicate_links_in_toc': False,
'embed_all_fonts': False,
'embed_font_family': None,
'enable_heuristics': False,
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0x113051360>,
'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_inline_navbars': False,
'output_profile': <calibre.customize.profiles.GenericEink object at 0x113051060>,
'page_breaks_before': '/',
'prefer_metadata_cover': False,
'preserve_cover_aspect_ratio': True,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': '/var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/1ynaf_mk.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': '',
'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,
'transform_css_rules': '[]',
'transform_html_rules': '[]',
'unsmarten_punctuation': False,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/w8ubl_te.epub
Parsing all content...
Duplicate manifest entry for 'images/activity.png'
Duplicate manifest entry for 'images/consider.png'
Duplicate manifest entry for 'images/example.png'
Duplicate manifest entry for 'images/key_points.png'
Duplicate manifest entry for 'images/key_terms.png'
Duplicate manifest entry for 'images/reinforce.png'
Duplicate manifest entry for 'images/FIT_ebook_cover.png'
Parsing generated-index.xhtml ...
Parsing _global_shared/conref_warehouse/components/prelims/testing_period/examination_period.xhtml ...
Parsing _global_shared/conref_warehouse/components/prelims/revisionmate/title_page_revision_mate_box.xhtml ...
Parsing _global_shared/conref_warehouse/components/prelims/using_this_study_text/generic_using_this_study_text.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/question_answers.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/chap_01_introduction.xhtml ...
Parsing cii.css ...
Parsing nav.xhtml ...
Parsing _global_shared/conref_warehouse/components/prelims/updates_box/title_page_updates_box_no_date.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/lc_the_story.xhtml ...
Parsing _global_shared/conref_warehouse/components/prelims/epub_syllabus_notice.xhtml ...
Parsing toc_d82e156.html ...
Parsing commonltr.css ...
Parsing ciirtl.css ...
Parsing general_insurance/award_and_cert_gi/fit/topics/cover.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/svg_test_-_learning_content.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/lc_learning_content_with_question_note.xhtml ...
Parsing testing/zz_cii_testing/Matt/image_test/topics/chapter_1.xhtml ...
Parsing commonrtl.css ...
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Detected chapter: Chapter 1
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 10 items of level: div_3
Found 6 items of level: p_4
Found 1 items of level: p_3
Found 7 items of level: p_7
Found 2 items of level: p_8
Found 5 items of level: div_9
Found 4 items of level: div_4
Found 21 items of level: p_5
Found 2 items of level: div_1
Found 4 items of level: div_5
Found 2 items of level: div_6
Found 4 items of level: div_7
Found 2 items of level: div_8
Found 2 items of level: p_9
Found 8 items of level: div_11
Found 4 items of level: p_12
Found 3 items of level: p_6
Ignoring level div_6
Ignoring level p_7
Ignoring level p_8
Ignoring level p_3
Ignoring level div_7
Ignoring level div_8
Ignoring level div_9
Ignoring level p_12
Ignoring level p_6
Ignoring level p_4
Ignoring level div_5
Ignoring level div_11
Ignoring level div_3
Ignoring level div_4
Ignoring level p_9
Ignoring level p_5
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Trimming 'images/critical_reflections.png' from manifest
Trimming 'images/on_the_web.png' from manifest
Trimming 'images/speech.png' from manifest
Trimming 'images/bibliography.png' from manifest
Trimming 'images/critical_reflection.png' from manifest
Trimming 'nav.xhtml' from manifest
Trimming 'images/think_back.png' from manifest
Trimming 'images/research.png' from manifest
Trimming 'images/exclamation.png' from manifest
Trimming 'images/research_exercise.png' from manifest
Trimming 'images/additional_reading.png' from manifest
Creating DOCX Output...
Rasterizing SVG images...
qt.svg: <input>:19:25: Could not parse node: font
qt.svg: <input>:53:26: Could not parse node: font
qt.svg: <input>:61:26: Could not parse node: font
Rasterizing 'images/fca_supervisory_approach.svg' to 548x548
qt.qpa.fonts: Populating font family aliases took 262 ms. Replace uses of missing font family "Arial-BoldMT" with one that exists to avoid this cost.
qt.svg: <input>:19:25: Could not parse node: font
qt.svg: <input>:78:26: Could not parse node: font
Rasterizing 'images/gbu_test_image.svg' to 529x695
Processing general_insurance/award_and_cert_gi/fit/topics/cover.xhtml
Processing _global_shared/conref_warehouse/components/prelims/testing_period/examination_period.xhtml
Processing _global_shared/conref_warehouse/components/prelims/revisionmate/title_page_revision_mate_box.xhtml
Processing _global_shared/conref_warehouse/components/prelims/updates_box/title_page_updates_box_no_date.xhtml
Processing _global_shared/conref_warehouse/components/prelims/using_this_study_text/generic_using_this_study_text.xhtml
Processing _global_shared/conref_warehouse/components/prelims/epub_syllabus_notice.xhtml
Processing toc_d82e156.html
Processing testing/zz_cii_testing/Matt/image_test/topics/chapter_1.xhtml
Processing testing/zz_cii_testing/Matt/image_test/topics/chap_01_introduction.xhtml
Processing testing/zz_cii_testing/Matt/image_test/topics/svg_test_-_learning_content.xhtml
Processing testing/zz_cii_testing/Matt/image_test/topics/lc_learning_content_with_question_note.xhtml
Processing testing/zz_cii_testing/Matt/image_test/topics/lc_the_story.xhtml
Processing testing/zz_cii_testing/Matt/image_test/topics/question_answers.xhtml
Processing generated-index.xhtml
3 Text Styles 30 Combined styles
DOCX output written to /var/folders/gj/2m93vtfj72gbbfgvgzxwvq95y4_j4g/C/calibre_6.19.1_tmp_w4mzp86m/dcx2pl3f.docx

I did not change any of the conversion options.

Many thanks

Viewing all articles
Browse latest Browse all 3900

Trending Articles