saving 16bits composite images as PNG/JPEG - change of behavior

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

saving 16bits composite images as PNG/JPEG - change of behavior

Mathieu Marchand
Hello,

I have noticed a change of behavior when saving 16bits composite
images in PNG or JPEG.
It used to convert first into RGB before saving them (tested on v1.42q).
It now converts in grayscale before saving them (see the result of the
macro below).

Is this a voluntary change? or some kind of regression / side effect
of another unrelated change in ImageJ?

Best,
Mathieu



run("HeLa Cells (1.3M, 48-bit RGB)");
saveAs("PNG", "/tmp/hela-cells.png");
rename("hela-cells-orig");
open("/tmp/hela-cells.png");
selectWindow("hela-cells-orig");
saveAs("Jpeg", "/tmp/hela-cells.jpg");
open("/tmp/hela-cells.jpg");
Reply | Threaded
Open this post in threaded view
|

Re: saving 16bits composite images as PNG/JPEG - change of behavior

Rasband, Wayne (NIH/NIMH) [E]
On Feb 22, 2010, at 3:20 PM, Mathieu Marchand wrote:

> Hello,
>
> I have noticed a change of behavior when saving 16bits composite
> images in PNG or JPEG.
> It used to convert first into RGB before saving them (tested on v1.42q).
> It now converts in grayscale before saving them (see the result of the
> macro below).
>
> Is this a voluntary change? or some kind of regression / side effect
> of another unrelated change in ImageJ?

This is a regression that is fixed in the 1.43r10 daily build.

-wayne

>
> Best,
> Mathieu
>
>
>
> run("HeLa Cells (1.3M, 48-bit RGB)");
> saveAs("PNG", "/tmp/hela-cells.png");
> rename("hela-cells-orig");
> open("/tmp/hela-cells.png");
> selectWindow("hela-cells-orig");
> saveAs("Jpeg", "/tmp/hela-cells.jpg");
> open("/tmp/hela-cells.jpg");