saving stack as AVI - lossless?

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

saving stack as AVI - lossless?

Lars Damgaard
Hi all, could not find a clear answer to this in the archive:

I have big stacks (hundreds of pics) of 1024x768 jpgs. I want to view them as a movie and thus use Save As... AVI.
The dialog I get has the option to select to compress as jpg. Is this "100% jpg quality", and if so, is this lossless?
Thanks for any insights in this,

Lars

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: saving stack as AVI - lossless?

Michael Schmid
Hi Lars,

saving as AVI with JPEG compression is NOT lossless. It is meant for including a movie in Powerpoint presentations etc.
A few years ago, there was an option in the dialog box to set the jpeg quality, but this was removed because that code was not working on all Java virtual machines (I guess that OpenJDK was the problem). Currently, the default quality of javax.ImageIO is used; it seems to be 75%.

Anyhow, usually even 100% jpeq quality is not lossless - typically, there is still chroma subsampling.

So, if you want a lossless compressed format, use png compression or none.

Michael
________________________________________________________________
On Mar 13, 2013, at 20:51, Lars Damgaard wrote:

> Hi all, could not find a clear answer to this in the archive:
>
> I have big stacks (hundreds of pics) of 1024x768 jpgs. I want to view them as a movie and thus use Save As... AVI.
> The dialog I get has the option to select to compress as jpg. Is this "100% jpg quality", and if so, is this lossless?
> Thanks for any insights in this,
>
> Lars
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: saving stack as AVI - lossless?

Lars Damgaard
Thanks a lot!

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Michael Schmid
Sent: 14. marts 2013 10:17
To: [hidden email]
Subject: Re: saving stack as AVI - lossless?

Hi Lars,

saving as AVI with JPEG compression is NOT lossless. It is meant for including a movie in Powerpoint presentations etc.
A few years ago, there was an option in the dialog box to set the jpeg quality, but this was removed because that code was not working on all Java virtual machines (I guess that OpenJDK was the problem). Currently, the default quality of javax.ImageIO is used; it seems to be 75%.

Anyhow, usually even 100% jpeq quality is not lossless - typically, there is still chroma subsampling.

So, if you want a lossless compressed format, use png compression or none.

Michael
________________________________________________________________
On Mar 13, 2013, at 20:51, Lars Damgaard wrote:

> Hi all, could not find a clear answer to this in the archive:
>
> I have big stacks (hundreds of pics) of 1024x768 jpgs. I want to view them as a movie and thus use Save As... AVI.
> The dialog I get has the option to select to compress as jpg. Is this "100% jpg quality", and if so, is this lossless?
> Thanks for any insights in this,
>
> Lars
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html