Take the 2-minute tour ×
Biology Stack Exchange is a question and answer site for biology researchers, academics, and students. It's 100% free, no registration required.

I store many gel images which are included in my Latex notebooks. The geldoc software normally produces TIFF files, however, Latex only accepts PNG or JPEG.

If I am going to store only a single copy of my DNA agarose gel images, which format is a good idea? PNG, or JPEG? Is there a good reason to keep one copy in TIFF and one copy in another format for every gel?

share|improve this question
I asked this here because an answer would require understanding of what sorts of information is recorded when a gel photo is taken, and how valuable they are for research purposes. I'm open to the idea of migrating it elsewhere (for instance SuperUser) if that seems more appopriate. –  Superbest Jun 11 at 3:29
JPEG is a lossy format. So save it as PNG. All these are raster graphics; all of them store images as pixels only. The differences lie in the compression methods and resolution. –  WYSIWYG Jun 11 at 4:11
BTW This question appears to be off-topic because it is about image formats which is not in the realm of this forum. –  WYSIWYG Jun 11 at 4:12
@Chris I think the major issue here is not TeX-specific, it is more about good practices for documentation of scientific data. –  Mad Scientist Jun 11 at 5:59
I agree with Mad Scientist response. More often than not the images I produce from microscopy or imaging are TIFF (my raw data files) and TIFF (the raw data) is more reliable for things such as pixel densitometry analysis (used for quantification analysis). –  Bez Jun 11 at 9:20

1 Answer 1

up vote 9 down vote accepted

Always keep the raw data files! This is always a good idea for scientific data, and the only exception should be if the raw data is prohibitively large and it is not feasible to store it completely. This is not the case for gel images, so I would always keep the originals, and then use a cropped and edited copy in a suitable format for documents.

The original image has the full amount of data, any conversion can potentially destroy data. For example, some imaging systems produce images with more than 8 bit color depth. Converting to another format will in many cases reduce the color depth to 8 bit as many programs and some image formats like JPEG don't support higher color depths.

JPEG is lossy compression, I would always prefer PNG. You might have to use JPEG at some point because of the file size, but that should be at the latest point possible.

share|improve this answer
No reason to ever use jpg. PNG is also a compressed format. –  terdon Jun 11 at 11:52
But Jpeg can compress by an order of magnitude more, by the nature of its lossy compression. PNG will compress in a similar manner to ZIP and so the gains are fair less. –  monkjack Jun 11 at 12:04
@terdon The lossless compression of PNGs still results in much larger images than JPEG. I personally use PNGs for almost everything, but there are situations where you need smaller files and where JPEG can be acceptable. –  Mad Scientist Jun 11 at 12:05
True. I'm just leery of JPG since they can easily get corrupted. Personally, I'd probably just convert the TIFFs to EPS and deal with those. –  terdon Jun 11 at 12:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.