Open tischi opened 2 months ago
Having two modules sounds good. It could allow to go a bit deeper. Understanding the content of an image file and what is packed into a particular format should be prerequisite to understanding the choice of format for writing though there would be some overlap if the two modules have to be standalone. Regarding the specific points:
1- I don't see the problem with save as
in python? Why can't python do save as format X
?
2- Regarding web-friendly formats, I would go for PNG only because it's lossless and free from patents (PNG images can be re-used whereas JPEG images often have artefacts). I would dedicate a whole module to time series/video formats because it's another can of worms with the codec + container combinations.
1- I don't see the problem with save as in python? Why can't python do save as format X?
The issue is the "change the contrast limits" cannot be done, which is the point here because sometimes the different display on screen is written in to the file and even sometimes changes the data and sometimes not (I can explain you in person later).
2- Regarding web-friendly formats, I would go for PNG only because it's lossless and free from patents (PNG images can be re-used whereas JPEG images often have artefacts). I would dedicate a whole module to time series/video formats because it's another can of worms with the codec + container combinations.
Yes, GIF is useful because you can have movies, but yeah, there could be other choices.
Hello, yes it is better to split the module. Saving data is often quite independent of the reading. A typical workflow is reading data, processing and saving some results table.
You want to be able to read many formats but stick for the writing to just a few.
Hi @manerotoni, @k-dominik, @jkh1,
I am working on an image data formats course and trying to think how to best structure this vast and complex topic.
Along those lines I found that this activity, while it is somehow very important, it is also a bit problematic: https://neubias.github.io/training-resources/image_file_formats/index.html?id_activity_platform-1=imagej-gui-activity-1&id_activity_platform-0=null-activity-0#save
I am thinking to change https://neubias.github.io/training-resources/image_file_formats in the following ways
In a nutshell: I feel it is OK to just have one module about inspecting and opening various image data formats, but I feel that writing image data (and all the issues of loss of data, loss of metadata, compression, which library to use, ...) is too complex and too important to be put into one module, but needs to separated into dedicated modules (e.g., OME-TIFF, OME-Zarr, Web native formats) that just teach one or few formats.
What do you think?