Re: Adding Text to TIFF Header

Posted by ctrueden on
URL: http://imagej.273.s1.nabble.com/Adding-Text-to-TIFF-Header-tp3696853p3696855.html

Hi Joachim & Christian,

Bio-Formats has logic to read and write arbitrary TIFF tags. The code is
licensed under LGPL, meaning it can be linked to commercial apps, and the
code can be found in the loci.formats.TiffTools class:

<
https://skyking.microscopy.wisc.edu/trac/java/browser/trunk/loci/formats/TiffTools.java
>
<http://www.loci.wisc.edu/software/docs/loci/formats/TiffTools.html>
<http://www.loci.wisc.edu/ome/formats.html>

See also loci.formats.in.TiffReader and loci.formats.out.TiffWriter.

It would be very easy to write an ImageJ plugin that calls this logic as
needed to perform whatever actions you want.

-Curtis

On Mon, Mar 17, 2008 at 5:22 AM, Joachim Wesner <
[hidden email]> wrote:

> HI Christian,
>
> I have recently written a Java class that can *read* arbitrary TIFF tags
> (including float, variable length), but not yet write them, because at
> best
> this would mean to integrate it with the ImageJ fileio routines. (In the
> moment it independently opens the file to read all tags it finds)
>
> If you are interested, I can send you the code.
>
> Mit freundlichen Grüßen / Best regards
>
> Joachim Wesner
>
> Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
> Wetzlar  HRB 2432
> Geschäftsführer:  Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David
> Roy
> Martyr | Colin Davis
>
>
>
>             Phase GmbH
>             <imaging@PHASE-HL
>             .COM>                                                      An
>             Gesendet von:              [hidden email]
>             ImageJ Interest                                         Kopie
>             Group
>             <[hidden email].                                       Thema
>             GOV>                       Adding Text to TIFF Header
>
>
>             17.03.2008 10:55
>
>
>              Bitte antworten
>                    an
>                Phase GmbH
>             <imaging@phase-hl
>                   .com>
>
>
>
>
>
>
> Hi,
>
> I would like add text information to the header of a TIFF file and also
> read text information from it. I know that the TIFF format specification
> lists a number of Tags for ASCII text, ie. tag 270 (dec.), image
> description.
>
> Is it possible to address one of the these ASCII TIFF tags by the ImageJ
> API ?
>
> Thanks
>
> Christian Kreutzfeldt
>
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>