Few bugs concerning multipage 16bit TIFF

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

ikyquocked
Posts: 8
Joined: Tue Aug 09, 2022 10:03 am

Few bugs concerning multipage 16bit TIFF

Post by ikyquocked »

Hello, I noticed some abnormal results with this TIFF (I have a lot of them)
https://we.tl/t-0hCYYvHvYb
This is multipage TIFF with two pages. 1st is 16bit image, 2nd is 8 bit image.

Code: Select all

./nconvert -org_depth -out tiff -c 4 -page 1 myfile.tiff 
This command results 2nd page 8bit tiff

Code: Select all

./nconvert -org_depth -out tiff -c 4 -page 2 myfile.tiff 
This command results 1st page converted converted to 8bit tiff

It's quiet strange behavior of -page key and -org_depth key

Linux Mint 21.3

BTW, I downloaded 64bit app for Linux, but it shows x86? https://download.xnview.com/NConvert-linux64.tgz

Code: Select all

* NCONVERT v7.155 (c) 1991-2023 Pierre-E Gougelet (Sep  8 2023/13:54:44) **
        Version for Linux x86 (X11)  (All rights reserved)
User avatar
xnview
Author of XnView
Posts: 44473
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Few bugs concerning multipage 16bit TIFF

Post by xnview »

First page is 0, second is 1
ikyquocked wrote: Fri May 17, 2024 1:32 am

Code: Select all

./nconvert -org_depth -out tiff -c 4 -page 0 myfile.tiff 
This results to 16bit tiff
Pierre.
ikyquocked
Posts: 8
Joined: Tue Aug 09, 2022 10:03 am

Re: Few bugs concerning multipage 16bit TIFF

Post by ikyquocked »

xnview wrote: Tue May 21, 2024 8:39 am First page is 0, second is 1
ikyquocked wrote: Fri May 17, 2024 1:32 am

Code: Select all

./nconvert -org_depth -out tiff -c 4 -page 0 myfile.tiff 
This results to 16bit tiff
Oh, so the 0 page is the first page! :mrgreen:
It is not obvious, please add this info to the --help manual
cday
XnThusiast
Posts: 4135
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Few bugs concerning multipage 16bit TIFF

Post by cday »

ikyquocked wrote: Fri May 24, 2024 9:31 am Oh, so the 0 page is the first page! :mrgreen:
It is not obvious, please add this info to the --help manual
Or maybe change to page 1, if that is possible?

Some room for debate?