On Fri, Nov 01, 2013 at 11:48:52PM -0600, Michael Simmonds wrote:
> We are loading our raw array into an uncompressed TIFF file with
> 16-bit grayscale and then opening it in your program.  This all works
> nicely

Hello, if I understand correctly, this means the user will still get the
image import dialog and has to enter the dimensions and scales manually.
Not really nice.

> but no metadata shows up in your browser.  The usual mechanism
> for putting custom metadata in TIFFs is through numbered tags and
> their fields. We can embed such tags into our files.  Does Gwyddion
> recognize and display any of these tags?

No, the image import does not try to interpret any TIFF tags it does not
really need.  In fact, plain images are loaded using a generic image
library so most specifics of the individual formats are lost (or, viewed
positively, can be happily ignored).

The standard way to add support for another TIFF-based file format
defining its own tags is to write a new file module.  The basic
advantage this brings is not metadata in the browser but correct
physical dimensions and units (which need to be taken from the custom
tags).

> If not, is there some other way to include metadata into TIFF files so
> that Gwyddion can recognize it?  We are free to choose any file format
> at this point in the project.  TIFF looked attractive for several
> reasons, but perhaps it is not the optimum one if metadata is not
> possible.  Could you propose an alternative format that might be more
> appropriate for us?  It should handle 16-bit data, be lossless,
> non-proprietary and recognized by many viewing programs.

The last condition pretty much eliminates any SPM data format.  So you
can go with either TIFF (using custom tags for additional information)
or PNG (using key-value tEXt chunks).  In either case the way to import
the data to Gwyddion is via a new file module.

Regards,

Yeti


------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
_______________________________________________
Gwyddion-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gwyddion-users

Reply via email to