Page 1 of 1

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

Posted: Thu May 26, 2011 8:49 am
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.

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

Posted: Thu May 26, 2011 2:02 pm
by xnview
Please use -org_depth

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

Posted: Thu May 26, 2011 5:01 pm
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

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

Posted: Mon May 30, 2011 7:36 am
by xnview
Oh sorry, it's a RAW? Currently no way to load 16bits RAW...

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

Posted: Mon May 30, 2011 7:25 pm
by andrecrrll
ok thanks any way for your time

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

Posted: Tue Dec 17, 2019 9:25 pm
by Adrienne
Greetings, Can I convert 16 bit png to 16 bit raw?

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

Posted: Wed Dec 18, 2019 9:40 am
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