Thank you Matthew,

I tried the examples - but they are applicable to JPEG. When I use the
ExifRewriter() rewriter to update TIFF tags, it throws the following
exception:
---
Exception in thread "main" org.apache.sanselan.ImageReadException: Not a
Valid JPEG File: doesn't begin with 0xffd8
    at
org.apache.sanselan.common.BinaryFileFunctions.readAndVerifyBytes(BinaryFileFunctions.java:139)
    at
org.apache.sanselan.formats.jpeg.JpegUtils.traverseJFIF(JpegUtils.java:61)
    at
org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.analyzeJFIF(ExifRewriter.java:199)
    at
org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.updateExifMetadataLossless(ExifRewriter.java:361)
    at
org.apache.sanselan.formats.jpeg.exifRewrite.ExifRewriter.updateExifMetadataLossless(ExifRewriter.java:298)
----

Is there a TIFF equivalent of ExifRewriter?

Thank you
Sid


On Tue, Apr 14, 2009 at 8:44 AM, Charles Matthew Chen <
[email protected]> wrote:

> Hello Sid,
>
>   Here are a couple of example usages of Sanselan.  Please take a look:
>
>
> https://svn.apache.org/repos/asf/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/MetadataExample.java
>
> https://svn.apache.org/repos/asf/incubator/sanselan/trunk/src/test/java/org/apache/sanselan/sampleUsage/WriteExifMetadataExample.java
>
> Thanks,
>    Matthew
>
>
> On Tue, Apr 14, 2009 at 2:49 AM, Eclipse Tracker
> <[email protected]> wrote:
> > Hello,
> >
> > I have to figure out a way to update the "DocumentName", "Artist" and the
> > "ImageDescription" tags of a tiff file.
> >
> > I have been able to fetch the existing tags of the file, but have not yet
> > been able to update the tags.
> >
> > I would very greatly appreciate any help that I can get in sorting this
> out.
> >
> > Thank you
> > Sid
> >
>

Reply via email to