[vtkusers] vtkTIFFWriter : Paint Shop Pro 7 - This is not a valid TIFF file

John Platt jcplatt at lineone.net
Fri Jul 23 10:24:30 EDT 2004


Hi Users,

Thanks to Istvan, Julien & Matt for your help. I don't mind showing you
the offending code :

      if ( _T("tif") == ext )
      {
         m_vtkImageWriter = vtkJPEGWriter::New();
      }
      else if ( _T("jpg") == ext )
      {
         m_vtkImageWriter = vtkTIFFWriter::New();
      }
      else if ( _T("png") == ext )
      {
         m_vtkImageWriter = vtkPNGWriter::New();
      }

I thought this was a bit strange when I couldn't find any references in
the archives. Well, as they say - 'You can't see for looking'. I'm off
to the opticians ...

Thanks again.

John.


-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of ALIZIER Julien AUSY
Sent: 23 July 2004 14:43
To: 'John Platt'; VTK Mailling List (E-mail)
Subject: RE: [vtkusers] vtkTIFFWriter : Paint Shop Pro 7 - This is not a
valid TIFF file

Hi John,

Your attached file is a jpeg file, not a tiff. Rename it and it should
work.
Maybe you swapped assigning tif and jpg extensions to your filename.

-- Julien


-----Message d'origine-----
De : John Platt [mailto:jcplatt at lineone.net]
Envoyé : vendredi 23 juillet 2004 15:27
À : vtkusers at vtk.org
Objet : [vtkusers] vtkTIFFWriter : Paint Shop Pro 7 - This is not a
valid
TIFF file


Hi Users,

I have written some image files using vtkTIFFWriter (see attachment).
These
can be viewed OK with MS Paint and Windows Picture & Fax Viewer but I
get
the above error with PSP. I also get a similar error for jpg's (This is
not
a valid JPEG-JFIF file) but png's are OK. 

Any suggestions as to what I am doing wrong? (I am running vtk 4.4, XP,
VS6
)

Many thanks.

John.
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers





More information about the vtkusers mailing list