CBxThumbs : CBxThumbnails(lister) plugin

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Dec wrote:But is there any standard of file names inside archive?
https://en.wikipedia.org/wiki/Comic_book_archive wrote:The file names inside an archive are usually numbered in ascending order according to the original page number, including the use of preceding zeros for all positions (example: using 001 rather than 1) to force the proper display of images by viewers across all operating systems. Otherwise files can be displayed out of order (example: 1, 10-19, 100-199, 2, 20-29, 3, etc.) due to differences in how file name characters are handled by each operating system.
TC plugins: PCREsearch and RegXtract
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

Post by *Dec »

I have some experience in archive processing. So I can create my own implementation of WLX plugin. Do somebody know where can I download a set of example files in different formats which can be used for testing?
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

you can try google
Last edited by iana on 2016-03-06, 00:54 UTC, edited 1 time in total.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3278
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

2Dec
normal such a file is
.cbz = images in a zip file
.cbr = images in a rare file
.cbx = images in a ?7zip? file

the files in these archives are normaly named:

Code: Select all

000.jpg
001.jpg
002.jpg
003.jpg
...
021.jpg
022.jpg
with the file 000.jpg being the cover

but it also could be like

Code: Select all

the flash - i need a hero - 00a.jpg
....
the flash - i need a hero - 00z.jpg
As said the first file is the one with the cover (normaly)
BUT

Code: Select all

green latern - in darkest night - 001.jpg
....
green latern - in darkest night - 0026.jpg
green latern - in darkest night - cover.jpg
is also possible....

2iana can you pls remove that link would be sad to see such a nice collection geting busted...
Hoecker sie sind raus!
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

Sir_SiLvA wrote:BUT Code:
green latern - in darkest night - 001.jpg
....
green latern - in darkest night - 0026.jpg
green latern - in darkest night - cover.jpg


is also possible....
I've not seen such files, and I have a lot of CBx archives too.
The only thing that comes close is:

name 000-00cover.JPG
name 000-01.JPG
name 000-02.JPG
name 001.JPG
name 002003.JPG
name 004.JPG
...

A simple binary compare to find the "lowest" page is enough for 99% of the archives out there (due to the ASCII code correctly sorting numbers before letters).
If the archive creator is not able to generate names that are sortable in the correct order, it's their fault.
Sir_SiLvA wrote:.cbx = images in a ?7zip? file
There are no cbx files.
CBX is a generic term.
https://en.wikipedia.org/wiki/Comic_book_archive wrote:.cb7 → 7z
.cba → ACE
.cbr → RAR
.cbt → TAR
.cbz → ZIP
TC plugins: PCREsearch and RegXtract
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

Post by *Dec »

My version: decCBxWLX.

Supported cb7, cbr, cbt, cbz. Cba is not supported because of x64 version of Unace.dll is not exist.

I tried to implement some heuristics in algorithm of detection of cover image. And if you see wrong cover - let me know.
iana
Senior Member
Senior Member
Posts: 345
Joined: 2010-07-27, 22:00 UTC

Post by *iana »

Dec wrote:My version: decCBxWLX.

Supported cb7, cbr, cbt, cbz. Cba is not supported because of x64 version of Unace.dll is not exist.

I tried to implement some heuristics in algorithm of detection of cover image. And if you see wrong cover - let me know.
tested and working fine
tanks Dec

just a question, why is the unrar dll needed as far as I know Igor implemented rar 5.0 in 7zip 15.06 and you included 7z dll's 15.14 which already have rar 5.0 support?
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

Post by *Dec »

iana wrote:just a question, why is the unrar dll needed
I prefer to use unrar.dll because of it is OFFICIAL unpacker of rar format.
xoxogen77
Junior Member
Junior Member
Posts: 9
Joined: 2011-10-30, 17:34 UTC
Location: korea

Post by *xoxogen77 »

2Dec

I modified wincmd.ini for files with rar,zip,7z extention.

"EXT="CBR"|EXT="CBZ"|EXT="CB7"|EXT="CBT"|EXT="RAR"|EXT="ZIP"|EXT="7Z""

Thank you for your efforts.
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

Post by *Dec »

I have updated the plugin. Now if file is simple archive (not CBx file) first image in the archive is used as cover image.
xoxogen77
Junior Member
Junior Member
Posts: 9
Joined: 2011-10-30, 17:34 UTC
Location: korea

Post by *xoxogen77 »

2Dec

detection of cover image works incorrectly.

ie) 000.jpg ~ 213.jpg

usually 000.jpg is cover. but 208.jpg is chosen.

50% of all archives fail to get a proper cover image.

byblo's was perfect to me.
Dec
Member
Member
Posts: 115
Joined: 2006-11-23, 12:48 UTC

Post by *Dec »

2xoxogen77
Do your file has a CBx extension? Can you provide a sample?
xoxogen77
Junior Member
Junior Member
Posts: 9
Joined: 2011-10-30, 17:34 UTC
Location: korea

Post by *xoxogen77 »

2Dec

Files I have tested were rar and zip.

After your reply, I changed extension to cbx.

now it works properly.

thank you.
User avatar
byblo
Senior Member
Senior Member
Posts: 270
Joined: 2005-02-20, 21:13 UTC
Contact:

Re: CBxThumbs : CBxThumbnails(lister) plugin

Post by *byblo »

Please note that this plugin is now outdated: If you currently using it, you can uninstall it since I released a new plugin: mthumbs.wlx that is the continuity and offers additional features: support JPG, PNG, GIF and TGA + albums support (priority to *cover* *folder* *preview*) + other advanced functions like ADS cache saving, unicode support, ect...

You can find mthumbs.wlx here: viewtopic.php?f=6&t=73820

Im still thinking to add missing 7z support but its not a priority for me.
Post Reply