![]() |
#1 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Zip to CBZ 'conversion'
If I create a zip with the following content
cb0001.jpg cb0001_001.jpg cb0001_002.jpg ... cb0001_173.jpg And then add it to calibre I get a CBZ with cb0001.jpg as the cover - good ![]() If I create a zip from the same images with the following file names cb0001.jpg cb0001-001.jpg cb0001-002.jpg ... cb0001-173.jpg And then add it to calibre I get a CBZ with cb0001-001.jpg as the cover - bad ![]() Its a trivial issue, but I'm wondering why it happens. Is there something special about having a '-' rather than a '_'. BR |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,198
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Two words: lexical sorting
![]() IIRC the code takes the "first" file as the cover as sorted via simple lexical sort. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
![]() ![]() I was hoping for a secret I could exploit to do the unusual. BR |
![]() |
![]() |
![]() |
#4 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
Well, you can use the idea to force specific sorting order of elements within archives (ZIP, RAR, CBZ, CBR, etc) as a type of suffixing, but that is about it. This can be helpful if you don't like to use an artificial page numbering scheme to maintain logical display order for unnumbered elements (outside cover, inside cover, flaps, frontispiece, the bookmark/poster/map/whatever that came with the book, etc).
Of course, you could just use numeric prefixing instead to force a specific display order of elements, without relying on ASCII order. |
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@saberdeyn - actually the '-' was my fat finger mistake, I use '_' as the separator between comic book name and image sequence number, not sure why I do that. Sometimes I put a '!' in the front of the image file name I want as the cover, on this occasion I didn't.
I forgot that the complete file name including extension is used, not just the name part. Should have remembered because the other day I got caught by some rogue psp files that inveigled there way into a folder. br |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 644
Karma: 1242364
Join Date: May 2009
Location: The Right Coast
Device: PC (Calibre), Nexus 7 2013 (Moon+ Pro), HTC HD2/Leo (Freda)
|
For the same reason that I have been using a scheme like:
Code:
Comic Name Here__--__v001__c001__p001.ext I've recently taken a look at ComicRack and ComicTagger, considering the possibility of adding new fields and/or tagging schemes to account for serial publications. The only problem I see with both those programs is that they're focused on Series Name which doesn't always work with books because book series can be nested in each other. I do like how they're differentiating between Series and Story names though. On the other hand, I've noticed that calibre is reliant on book titles, not story titles, which makes dealing with omnibus, anthologies, magazines and other multiple story publications a bit awkward to deal with. Requiring either the publication be exploded (separate entries in the database) or including a ToC in the comments field. Neither option being particularly graceful. |
![]() |
![]() |
![]() |
#7 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,633
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The comics are destined to be used on a couple toddlers iPads - I doubt they're up to Comic Book Rack etc.
They're scans of a mates vintage comic book collection, some of which he inherited from his Dad and maybe even his Granddad. He doesn't know I'm scanning them, because he's over in Tarin Kowt. He'll be home by Christmas, so the idea is that he can give them to his kids etc etc. What do I get - a hug and maybe a kite to fly. BR |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Comic Converter for PDF, CBZ, CBR, ZIP, RAR, PPT, PPTX | jontylovell | Deals and Resources (No Self-Promotion or Affiliate Links) | 10 | 04-23-2020 06:59 PM |
.zip / .rar with .jpegs - added automatically as .cbr / .cbz files | Joanna | Calibre | 2 | 04-21-2012 05:08 PM |
.cbz conversion hangs | roguesith | Conversion | 5 | 12-10-2011 03:14 AM |
PRS-650 CBZ, CBR, ZIP or RAR file support? | Renji | Sony Reader Dev Corner | 4 | 12-01-2010 08:43 AM |
Having a problem with CBR/CBZ conversion | curtw | Calibre | 5 | 10-03-2008 03:11 AM |