YACReader/yacreader

Bug report: wrong file being opened as the first image/ cover

Opened this issue · 2 comments

When opening the comic file (tested and has the same behaviour with .cbz/ .zip / .cbr / .rar), the wrong file is being shown as the first page.
The contents looks like this (all the way to 0161.jpg):
image

Strangely the image being opened as the first page/ cover is 0102.jpg, then the rest are in epected order.

Removing the first five _0X.jpg files fixes this behaviour, and it was then in the expected order with the right page at the front.
Separately, removing the 0102.jpg file alone fixes it too.
I can confirm it is not the image 0102.jpg itself causing this as as I copied this archive with a different image as the name 0102.jpg instead, and the same thing happens where that file is shown as the first page.

Hi,

time ago some comics started to appear with a special naming convention for spreads, the page number for the left page and right page are used in the file name. For example:

01.jpg
02.jpg
0304.jpg
05.jpg

And that should be the right order for those files and not 01 02 05 0304.

Sadly this is something the app needs to guess looking at the file names, and it looks that your comic is triggering this behavior when it should not.

I'll take a look, but my recommendation is to use a simple naming scheme, first page should be 0001.jpg and last one xxxx.jpg.

Oh I see, that is very interesting and good to know!
I downloaded the file, so I did decide this naming scheme myself, but will change it as you have recommended.

Thanks for the response!