Convert from RAW (16-bit) to PNG (16-bit)

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

Moderators: XnTriq, helmut, xnview

andrecrrll
Posts: 3
Joined: Thu May 26, 2011 8:32 am

Convert from RAW (16-bit) to PNG (16-bit)

Post by andrecrrll »

Good day,

I'm new in nconvert and I'm trying to convert and raw image multicomponent with the following caracteristics:
Components:7
Size: 1024x1024
bits: 16bits per pixel Little-Endian

And I want to convet it to files .png, I'm using the next command and its create the 7 files with 1024x1024 dimentions but with 8 bits per pixel, so my image is not the same

nconvert -out pnm -n 1 7 1 -size 1024x1024 -o result_#.png Image-7x1024x1024-2_Bytes-LittleEndian.raw

Could some one help me tp get a 16-bits result image??

thanks a lot.
User avatar
xnview
Author of XnView
Posts: 45224
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by xnview »

Please use -org_depth
Pierre.
andrecrrll
Posts: 3
Joined: Thu May 26, 2011 8:32 am

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by andrecrrll »

hi,
Thanks for your answer, but it still does not work.
Now I used :
nconvert -out pnm -n 1 7 1 -size 1024x1024 -org_depth -o result_#.png 46939202-7x1024x1024-3.000-2_Bytes-LittleEndian.raw

I'm using ImageJ to visualize the result, but It still detects 8bits and I need 16 bits in order to compare the results.

you have any other sugestion??

Thanks
User avatar
xnview
Author of XnView
Posts: 45224
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by xnview »

Oh sorry, it's a RAW? Currently no way to load 16bits RAW...
Pierre.
andrecrrll
Posts: 3
Joined: Thu May 26, 2011 8:32 am

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by andrecrrll »

ok thanks any way for your time
Adrienne
Posts: 1
Joined: Tue Dec 17, 2019 9:22 pm

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by Adrienne »

Greetings, Can I convert 16 bit png to 16 bit raw?
User avatar
xnview
Author of XnView
Posts: 45224
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Convert from RAW (16-bit) to PNG (16-bit)

Post by xnview »

Adrienne wrote: Tue Dec 17, 2019 9:25 pm Greetings, Can I convert 16 bit png to 16 bit raw?
RAW output is not supported
Pierre.