Page 1 of 1

XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Thu Jan 24, 2019 7:14 pm
by masterjp
The new update of XnConvert is great, especially the latest webp format and the fast Multi-core mode! Thank you!

Windows 10 (64bit - all updates)
XnConvert 1.78 (64 bit)

The Multi-CPU Core conversion mode has a problem with *.psd (Photoshop) files with multi-layer (!).
It converts every .psd file many times! I converted 5 Photoshop files, which have 3 layers.

I used the following steps:

1. Start XnConvert
2. Activate "Input file(s)" tab
3. add files
4. select 5 .psd files with multi-layer within a directory
5. Activate "Action" tab
6. Add action
Resize => Mode => longest side
Size => Pixel => 2048 pixels
Enlarge/Reduce => reduce only
Resample => lanczos
7. Activate "Output" tab
Replace file, if already exists
Use CPU's Core = 2
8. File format for output = .webp

I started the conversion.

Here is the log screen window of the program. Every file is converted 4 times.
The file counter did a countdown from 5 to 1. After that, it counts the file number to negative values.
The converted picture files are correct.

D:\XnView_Test\05.psd : loading
D:\XnView_Test\05.psd : loading
D:\XnView_Test\05.psd (1) 1496x630x32 : loaded
D:\XnView_Test\05.psd (2) 1496x630x32 : loaded
D:\XnView_Test\05.webp : saved
D:\XnView_Test\05.psd : loading
D:\XnView_Test\05.webp : saved
D:\XnView_Test\05.psd : loading
D:\XnView_Test\05.psd (3) 1496x630x32 : loaded
D:\XnView_Test\05.psd (4) 1496x630x32 : loaded
D:\XnView_Test\05.webp : saved
D:\XnView_Test\04.psd : loading
D:\XnView_Test\05.webp : saved
D:\XnView_Test\04.psd : loading
D:\XnView_Test\04.psd (1) 1496x630x32 : loaded
D:\XnView_Test\04.psd (2) 1496x630x32 : loaded
D:\XnView_Test\04.webp : saved
D:\XnView_Test\04.webp : saved
D:\XnView_Test\04.psd : loading
D:\XnView_Test\04.psd : loading
D:\XnView_Test\04.psd (3) 1496x630x32 : loaded
D:\XnView_Test\04.psd (4) 1496x630x32 : loaded
D:\XnView_Test\04.webp : saved
D:\XnView_Test\03.psd : loading
D:\XnView_Test\04.webp : saved
D:\XnView_Test\03.psd : loading
D:\XnView_Test\03.psd (1) 1496x630x32 : loaded
D:\XnView_Test\03.psd (2) 1496x630x32 : loaded
D:\XnView_Test\03.webp : saved
D:\XnView_Test\03.psd : loading
D:\XnView_Test\03.webp : saved
D:\XnView_Test\03.psd : loading
D:\XnView_Test\03.psd (3) 1496x630x32 : loaded
D:\XnView_Test\03.psd (4) 1496x630x32 : loaded
D:\XnView_Test\03.webp : saved
D:\XnView_Test\02.psd : loading
D:\XnView_Test\02.psd (1) 1496x630x32 : loaded
D:\XnView_Test\03.webp : saved
D:\XnView_Test\02.psd : loading
D:\XnView_Test\02.psd (2) 1496x630x32 : loaded
D:\XnView_Test\02.webp : saved
D:\XnView_Test\02.psd : loading
D:\XnView_Test\02.psd (3) 1496x630x32 : loaded
D:\XnView_Test\02.webp : saved
D:\XnView_Test\02.psd : loading
D:\XnView_Test\02.psd (4) 1496x630x32 : loaded
D:\XnView_Test\02.webp : saved
D:\XnView_Test\01.psd : loading
D:\XnView_Test\02.webp : saved
D:\XnView_Test\01.psd : loading
D:\XnView_Test\01.psd (1) 1496x630x32 : loaded
D:\XnView_Test\01.psd (2) 1496x630x32 : loaded
D:\XnView_Test\01.webp : saved
D:\XnView_Test\01.webp : saved
D:\XnView_Test\01.psd : loading
D:\XnView_Test\01.psd : loading
D:\XnView_Test\01.psd (3) 1496x630x32 : loaded
D:\XnView_Test\01.psd (4) 1496x630x32 : loaded
D:\XnView_Test\01.webp : saved
D:\XnView_Test\01.webp : saved

Input files: 5
Extracted pages: 20
Overwritten: 20

Total Duration: 21 second(s)

I tested the same files in single CPU core mode and everything is fine!
Although I used .jpg format files in Multi-CPU core mode and all works correct.
I tested it with 2, 4, 6 and 12 cpu cores.

So I think the problem are Photoshop .psd files and the Multi-CPU core settings which made problems.

Re: XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Fri Jan 25, 2019 8:19 am
by xnview
please send me a .psd to test?

Re: XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Fri Jan 25, 2019 3:51 pm
by masterjp
Here is a photoshop file with 2 text layers which produce the error.
I copied this file 5 times and renamed it to 01.psd, 02.psd, ... and 05.psd.
Then I tested the Multi-CPU core mode with setting 2.
01.7z

Re: XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Mon Jan 28, 2019 10:24 am
by xnview
do you have checked 'convert all pages' setting?

Re: XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Mon Jan 28, 2019 6:20 pm
by masterjp
I am sorry and forgot to set the switch for "convert multi layer".
But it did not help or the status information in the conversion window are wrong.

I tried my test with another directory ( 1.385 psd files - with smartobjects).

XnConvert said:

Input files: 1385
Extracted pages: 4676
Overwritten: 4675

Why will XnConvert extract all pages of the psd files, if it should make one .webp file?
Is it a part of the conversion?
Futhermore XnConvert wrote every processed file more than one time. It costs useless time.

The screenshot shows, that XnConvert does not make a correct countdown.
It only counts the input files, but does not know how much layers a picture file have!
So it counts down to negative values of the processed files and percentage.
Zwischenablage-1.png

Re: XnConvert 1.78 (64bit) - problem with *.psd with multi-layer and Multi-CPU core conversion!

Posted: Wed Jan 30, 2019 9:38 am
by xnview
ok, i can reproduce, will be fixed

Re: XnConvert 1.79 (64bit)

Posted: Thu Jan 31, 2019 5:21 pm
by masterjp
The new release 0.79 is great!

The percentage value does not match with the green progress bar.
If you are over 60% the progress bar will be at 100%.

I think the progress bar use a wrong maximum value to show 100%.