Re: Problem with tif images captured from a scanner

From: Dances With Crows (danSPANceswitTRAPhcrows_at_gmail.com)
Date: 10/23/04


Date: 23 Oct 2004 17:42:53 GMT

On Sat, 23 Oct 2004 17:08:13 +0000 (UTC), David Efflandt staggered into
the Black Sun and said:
> On Sat, 23 Oct 2004 12:42:48, Madhusudan Singh
> <spammers-go-here@spam.invalid> wrote:
>> A few weeks ago, I scanned a set of SEM images on a Mac OSX connected
>> scanner and saved them as tif files.
>>tiffinfo bst1.tif
>>bst1.tif: Warning, unknown field with tag 700 (0x2bc) ignored.
>>bst1.tif: Warning, unknown field with tag 34665 (0x8769) ignored.
>> Bits/Sample: 16
>>
>> Apparently these 700 and 34665 tags are causing some problem.

I don't think the tags are the real problem. The standard TIFF library
is supposed to ignore any tag that it doesn't understand.

>> If I try to view these tif files, with xv, it quits with segmentation
>> fault. kuickview does show the images but with a slew of errors in
>> the console log.

I'll bet this isn't because of the tags, but because of the 16
bits/sample thing. Support for 16-bit images is kind of uncertain right
now, since most of the time, 8 bits/sample is plenty and only high-end
photographile weenies (who are stuck with 'Doze/OS X *anyway*) really
need/use anything more.

If you really want to get rid of extraneous TIFF tags, there isn't much
out there. I've put together a set of functions using the code from
tiffdump that might do the job, but they're sort of special-cased right
now for working with a set of undocumented tags used by a commercial
program. I've had reasonable luck by using tifftopnm followed by
convert with some options to convert that regenerate the resolution and
units tags. You might even be able to use tiffcp. I don't think the
tifftopnm thing will work on 16-bit images though.

> Have you tried loading the tif files into The Gimp, and saving them as
> png? I have no idea if that will work, but worth a shot.

If GIMP can handle 16-bit images, this will probably work. You'll want
to use GIMP 2.0, naturally. HTH,

-- 
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
Brainbench MVP for Linux Admin /    mail: TRAP + SPAN don't belong
http://www.brainbench.com     /                Hire me! 
-----------------------------/ http://crow202.dyndns.org/~mhgraham/resume


Relevant Pages

  • Re: why a different tag for SVG images?
    ... |>|>So we have 2 tags and one allows alt content. ... |>changed by tags being present or absent. ... things like images should not be done in HTML tags at all. ... | decorative, they should be inserted as generated content by CSS, then ...
    (comp.infosystems.www.authoring.html)
  • Re: Search not working properly
    ... I have recently discovered a very strange issue with the index search ... "In indexed locations, search filenames and contents. ... it appears that it is only searching images ... by name and not by tags. ...
    (microsoft.public.windows.vista.file_management)
  • Re: photo tagging saga
    ... I'm very interested in your views of tools, workflows and tag ... hierarchies. ... and normally don't rename images at all. ... The tags need to be replicated ...
    (rec.photo.digital)
  • Re: Digital Photo Management?
    ... which cannot recognise the tags. ... all the images I've ever taken from that place. ... metadata in an open format. ... if I screwed up and lost the XML file I could reconstruct ...
    (rec.photo.digital)
  • Re: Windows Photo Gallery - Tagging Errors
    ... I've been tagging my digital image collection in Windows Photo Gallery. ... The next time I open up WPG, I will start to see more tags on the ... I'll assume you want to add tags to sort your images by. ... A smarter way would be to use several of the sort keys already part of ...
    (microsoft.public.windows.vista.music_pictures_video)