Re: Problem to read tiff file



Is it possible that your extraction code has a bug.
Make sure that the tiff file that you extracting from EPS is a valid
tiff file.

Regards,
Valentin Ivanov.

On Jan 2, 1:27 am, dharmendratomar2...@xxxxxxxxx wrote:
Hi All,

I have extraced a tiff image embedded in an EPS file. Its opening in
Document imaging editor and Irfan view but not in paint.
My current work reuires to create a thumbnail of the above extracted
image, for this I have tried the following code.
On using Image.FromFile or Image.FromStream API's, Application raises
exception like "Out of memory"or "Invalid parameters" sequencially.
To verify the above problem I also tried with other tiff, jpg, bmp
image's which much bigger size with same permissions. They worked as
desired with no exceptions.

Please let me know if I am missing something or there is some other way
to use tiff preview embedded in EPS files.

Code :

Image img = Image.FileFrom("C:\\BBB.tiff");
or
FileStream fs = File.OpenRead ("C:\\BBB.tiff");
Image img = Image.FromStream(fs,false);

Please suggest me what can I do to remove this error....

Thanks in advance.
- Dharmendra

.



Relevant Pages

  • Re: problems pasting Adobe Illustrator graphics into Word
    ... for an eps with preview that actually worked in Word. ... If I switch to "Normal" view in Word, ... it does for TIFF previews, but that is not an option for my PC totin' ... In "Mode A" pasted graphics show up in both views and are ...
    (microsoft.public.mac.office.word)
  • Re: problems pasting Adobe Illustrator graphics into Word
    ... Please say more about "eps with preview". ... it does for TIFF previews, but that is not an option for my PC totin' ... Maybe this isn't Extra Credit after all... ... In "Mode A" pasted graphics show up in both views and are ...
    (microsoft.public.mac.office.word)
  • Re: problems pasting Adobe Illustrator graphics into Word
    ... As far as I know, Word will handle PICT, TIFF and WMF as EPS Previews. ... You can't do WMF on the Mac, ... dpi using raster graphics, PROVIDED they do not contain more than RGB ...
    (microsoft.public.mac.office.word)
  • graphics file format for go books?
    ... High-quality diagram export as EPS or PDF ... You can get eps but cannot do tiff from Smartgo. ... tagged image file format ... The incompatibility of extensions has ...
    (rec.games.go)
  • Fax Tiff format
    ... I am trying to create a tiff file for submission to MS Fax Server in a format that the server will accept without re-formatting it. ... Speed is very important for our application, so I need to find a way to create a tiff file that MS Fax server will accept without re-formatting it. ...
    (microsoft.public.windowsxp.print_fax)