is a good place to start.
1) e2proc2d.py should not produce invalid images (if it does, please send an example). However, you should be aware that both TIFF and PNG support 16 bit greyscale images, and TIFF also supports floating point images. You may find a variety of consumer software won't support these more unusual modes even if they are generally able to read TIFF and PNG. If your intent is to produce images you can use with powerpoint, photoshop, etc. You should make sure that you are writing in 8 bit integer mode. The default behavior is to try and preserve as much information (or potential information) as possible, so it will use as many bits as it can. With the
--outmode uint8
option, it will write 8 bit integer images, as long as the format supports them (most do), and that should improve readability in consumer software.
If you wish to convert TIFF stacks to MRC stacks:
e2proc2d.py file.tiff file.mrcs
- The "s" in "mrcs" is critical!
- You may optionally specify --outmode (or you will get floating point .mrcs files)
- if you wish to force the A/pix value add --apix <value>
2) EMAN2 will try and preserve all header values which are compatible between formats, including A/pix. However, as far as I am aware, nobody is storing A/pix information in TIFF files. While TIFF does support the possibility of additional header tags, these have to be registered with Adobe to be valid, and as far as I know, noboby in the CryoEM community has done this. If you are aware of someone putting A/pix in a TIFF header, please send the details and we will implement it. Anyway, you can override the A/pix value when writing files in e2proc2d.py with the --apix <value> option.
3) Note that it is possible to combine multiple single images into a single stack file with:
e2proc2d.py <input1> <input2> ... <output>
as long as <output> is a format supporting stack files. In reverse:
e2proc2d.py <input stack> <outbase> --unstacking
should produce a set of individual images from a single stack file.
See this page for details on supported features in each file format: