CBZ > EPUB "remove first image" issue

Bug #1709150 reported by Jonas Garbuio
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Hi, here is my problem:

I import zip files (containing images) in Calibre.
Calibre convert iot automatically in CBZ, adding the first image as cover, that's good
Then I want to convert this CBZ to EPUB, but I got twice my first images, even if I check the option "remove first image".

I read the description for this option, and It should work because that's exactly my usage (Calibre used the first image as cover, so I want to delete to first image to keep the cover and the following images)

Actually I have to delete the cover.jpg file in each folder (or edit metadata and delete cover) to not have this duplication

Hope I didn't misunderstand the option, and if yes, can someone help me with my 1st image duplication problem ?

I use Calibre latest verison, 64bit
Windows 10

Jonas Garbuio (etshy)
description: updated
description: updated
Jonas Garbuio (etshy)
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1709150

Works for me, steps I tried:

1) Import a CBZ file
2) Click Convert
3) Tick the remove first image option under structure detection section
4) Click OK
5) Open the resulting EPUB file int he calibre viewer.
6) There is no duplicated cover. The first page is the cover from
calibre, the second page is the second image from the cbz file.

 status invalid

Changed in calibre:
status: New → Invalid
Revision history for this message
Jonas Garbuio (etshy) wrote :

I'll put some screen of my options when I convert and evidences there is duplication

After importation I got this in the Calibre folder.
https://puu.sh/x4z9j/825087df99.png

I convert to EPUB with these options
https://puu.sh/x4zcg/ec48e53f6d.png

https://puu.sh/x4zcH/035f20414a.png

https://puu.sh/x4zdc/597a7b69e3.png

https://puu.sh/x4zeo/56745887de.png

After that, I got this in my folder
https://puu.sh/x4zeT/ff54efd566.png
Normal

But When I open the epub (with default viewer, that is Edge browser)
I have this
https://puu.sh/x4zha/4fa88c1077.png

Twice the first page, even so I ticked the option.

And same with Calibre Viewer
page 1 https://puu.sh/x4zjf/e6f8f563c2.png
page 2 https://puu.sh/x4zjP/bdec268326.png

Am I misunderstand another option that create that duplication ?

Thanks in advance.

ps : I can't for now, but I'll add a conversion log asap.

Revision history for this message
Jonas Garbuio (etshy) wrote :
Download full text (8.8 KiB)

Here is the converison log for the conversion I made earlier

Conversion du livre 1 sur 1 ([ESS]LifeAlive 01)
C:\Program Files\Calibre2\app\pylib.zip\dateutil\parser.py:601: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Conversion options changed from defaults:
  dont_split_on_page_breaks: True
  verbose: 2
  read_metadata_from_opf: u'C:\\Users\\Etshy\\AppData\\Local\\Temp\\calibre_ug7mdh\\v61ap3.opf'
  epub_flatten: True
  remove_first_image: True
  no_svg_cover: True
  no_process: True
  output_profile: 'generic_eink_hd'
  cover: u'C:\\Users\\Etshy\\AppData\\Local\\Temp\\calibre_ug7mdh\\x001jh.jpeg'
Resolved conversion options
calibre version: 3.6.0
{'asciiize': False,
 'author_sort': None,
 'authors': None,
 'base_font_size': 0.0,
 'book_producer': None,
 'change_justification': 'left',
 'chapter': None,
 'chapter_mark': u'pagebreak',
 'colors': 0,
 'comic_image_size': None,
 'comments': None,
 'cover': u'C:\\Users\\Etshy\\AppData\\Local\\Temp\\calibre_ug7mdh\\x001jh.jpeg',
 'debug_pipeline': None,
 'dehyphenate': True,
 'delete_blank_paragraphs': True,
 'despeckle': False,
 'disable_font_rescaling': True,
 'disable_trim': False,
 'dont_add_comic_pages_to_toc': False,
 'dont_grayscale': False,
 'dont_normalize': False,
 'dont_sharpen': False,
 'dont_split_on_page_breaks': True,
 'duplicate_links_in_toc': False,
 'embed_all_fonts': False,
 'embed_font_family': None,
 'enable_heuristics': False,
 'epub_flatten': True,
 'epub_inline_toc': False,
 'epub_toc_at_end': False,
 '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 0x0000022E8BC84A58>,
 'insert_blank_line': False,
 'insert_blank_line_size': 0.5,
 'insert_metadata': False,
 'isbn': None,
 'italicize_common_cases': True,
 'keep_aspect_ratio': False,
 'keep_ligatures': False,
 'landscape': False,
 'language': None,
 'level1_toc': None,
 'level2_toc': None,
 'level3_toc': None,
 'line_height': 0.0,
 'linearize_tables': False,
 'margin_bottom': 0,
 'margin_left': 0,
 'margin_right': 0,
 'margin_top': 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_process': True,
 'no_sort': False,
 'no_svg_cover': True,
 'output_format': u'png',
 'output_profile': <calibre.customize.profiles.GenericEinkHD object at 0x0000022E8BC84E10>,
 'page_breaks_before': None,
 'prefer_metadata_cover': False,
 'preserve_cover_aspect_ratio': False,
 'pretty_print': True,
 'pubdate': None,
 'publisher': None,
 'rating': None,
 'read_metadata_from_opf': u'C:\\Users\\Etshy\\AppData\\Local\\Temp\\calibre_ug7mdh\\v61ap3.opf',
 'remove_fake_margins': True,
 'remove_first_image': True,
 'remove_paragraph_spacing': False,
 'remove_paragraph_spacing_indent_size': 1.5,
 'renumber_headings': True,
 'replace_scene_breaks': u'',
 'right2left': False,
 'search_replace': '[]'...

Read more...

Revision history for this message
Kovid Goyal (kovid) wrote :

You have the option in comic input to disable comic provessing turned
on. Tyurn it back off and you should be fine.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Invalid → Fix Released
Revision history for this message
Jonas Garbuio (etshy) wrote :

OK so I need to turn off that option, but it was to not resize/change to black & white, etc (the other options on comics input.)
I need to turn off and select whet I don't want to be processed ?

I'll try that, thanks a lot.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.