PNG vs TIFF Formats

classic Classic list List threaded Threaded
5 messages Options
Steven Samuelsson Steven Samuelsson
Reply | Threaded
Open this post in threaded view
|

PNG vs TIFF Formats

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

May I query the listserv for guidance on which file format is best for converting proprietary .czi and .lif micrographs.  Clearly, am looking for best quality.  Thanks so much.

Steven
Michael Giacomelli-2 Michael Giacomelli-2
Reply | Threaded
Open this post in threaded view
|

Re: PNG vs TIFF Formats

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Hi Steven,

PNG is lossless and highly compatible (for 8 bit per channel data anyway, 16 bit per channel data can be hit or miss), so I often prefer it.  Unfortunately it is an extremely slow format which makes it very painful for things like whole slide images.  In one script I wrote rotating and converting WSIs to PNG, the PNG encoder alone was more CPU time than all other processing combined.

TIFF is a more complex format that supports a lot more types of compression than PNG, but tends to have compatibility issues, especially for large files because the format is less commonly used and often poorly tested.  The current release of Matlab for instance cannot read its own TIFF files if the file size becomes too large.  This makes working with TIFF much more annoying, but it is often a better idea than PNG, especially for larger files when PNG is too slow to be practical.

Assuming you use lossless TIFF and set the bits per pixel correctly, there will be no difference in the output between PNG and TIFF, only in how compatible and efficient they are.

Mike

On Tue, Jun 4, 2019 at 4:02 PM Steven Samuelsson <[hidden email]<mailto:[hidden email]>> wrote:
*****
To join, leave or search the confocal microscopy listserv, go to:
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.umn.edu_cgi-2Dbin_wa-3FA0-3Dconfocalmicroscopy&d=DwIFaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=0LyF_z8oU1XGGyisIeOIXyIGIM5IYb3NcLjxHjUca5Y&m=AuHevIvFwlr6Grr5Al5Ep5TjUbCFHkxgkrOkKzYPPX4&s=gCNX34Q3_wQAsSexT6XO45Ji4Xjgh6Ndyb40bd5X4k8&e=
Post images on https://urldefense.proofpoint.com/v2/url?u=http-3A__www.imgur.com&d=DwIFaQ&c=kbmfwr1Yojg42sGEpaQh5ofMHBeTl9EI2eaqQZhHbOU&r=0LyF_z8oU1XGGyisIeOIXyIGIM5IYb3NcLjxHjUca5Y&m=AuHevIvFwlr6Grr5Al5Ep5TjUbCFHkxgkrOkKzYPPX4&s=EZA9BRaTNuUvxtOotBCeJht3HymnuOo7iisu1zWhLLg&e= and include the link in your posting.
*****

May I query the listserv for guidance on which file format is best for converting proprietary .czi and .lif micrographs.  Clearly, am looking for best quality.  Thanks so much.

Steven
lechristophe lechristophe
Reply | Threaded
Open this post in threaded view
|

Re: PNG vs TIFF Formats

In reply to this post by Steven Samuelsson
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Hi,

Compressed PNG is usually lossless, and tiff is uncompressed, so the
quality will be the same, with a smaller size for PNG. However, metadata is
better preserved with tiff (such as ImageJ metadata: spatial scale,
acquisition parameters...) so I'd advise to store tiff rather than PNG.

Christophe

On Tue, 4 Jun 2019 at 22:02, Steven Samuelsson <[hidden email]>
wrote:

> *****
> To join, leave or search the confocal microscopy listserv, go to:
> http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
> Post images on http://www.imgur.com and include the link in your posting.
> *****
>
> May I query the listserv for guidance on which file format is best for
> converting proprietary .czi and .lif micrographs.  Clearly, am looking for
> best quality.  Thanks so much.
>
> Steven
>
Carol Heckman Carol Heckman
Reply | Threaded
Open this post in threaded view
|

Re: [EXTERNAL] PNG vs TIFF Formats

In reply to this post by Steven Samuelsson
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Steven,

TIFF is not a single format but a vast variety of formats, depending on what is in the header and how many bits in which the information from each pixel is encoded.  It is often not readable by software not used for its collection.  As mentioned by somebody already, it is often convertible if you have saved an image as a lossless file.  Even then, the new software may misplace some bits and you get image data that is not suitable for quantitative comparisons.  These comments are a pretty perfunctory analysis, but we teach whole course in this subject!

Carol Heckman

Bowling Green State University


________________________________
From: Confocal Microscopy List <[hidden email]> on behalf of Steven Samuelsson <[hidden email]>
Sent: Tuesday, June 4, 2019 3:48 PM
To: [hidden email]
Subject: [EXTERNAL] PNG vs TIFF Formats

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
LISTSERV 16.5 - CONFOCALMICROSCOPY List at LISTS.UMN.EDU - Listserv Lists at the University of Minnesota<http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy>
lists.umn.edu
[hidden email]: listserv archives. confocalmicroscopy


Post images on http://www.imgur.com and include the link in your posting.
*****

May I query the listserv for guidance on which file format is best for converting proprietary .czi and .lif micrographs.  Clearly, am looking for best quality.  Thanks so much.

Steven
Reece, Jeff (NIH/NIDDK) [E]-2 Reece, Jeff (NIH/NIDDK) [E]-2
Reply | Threaded
Open this post in threaded view
|

Re: PNG vs TIFF Formats

In reply to this post by Steven Samuelsson
*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

Has anyone mentioned OME TIFF yet?  Most of the microscope/acquisition info is retained in the header, which is useful for some microscopy-oriented software; and the result is also still a TIFF, so it is also usually readable by most non-microscopy programs (others can add their experience here).
https://docs.openmicroscopy.org/ome-model/5.6.3/ome-tiff/
It is relatively easy to set up a macro in ImageJ/Fiji to do the conversion quickly.

Cheers,
Jeff

-----Original Message-----
From: Steven Samuelsson <[hidden email]>
Sent: Tuesday, June 4, 2019 3:49 PM
To: [hidden email]
Subject: PNG vs TIFF Formats

*****
To join, leave or search the confocal microscopy listserv, go to:
http://lists.umn.edu/cgi-bin/wa?A0=confocalmicroscopy
Post images on http://www.imgur.com and include the link in your posting.
*****

May I query the listserv for guidance on which file format is best for converting proprietary .czi and .lif micrographs.  Clearly, am looking for best quality.  Thanks so much.

Steven