ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder
ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Writing tiff description
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nacho

Spain
1 Posts

Posted - Jun 11 2019 :  05:18:44  Show Profile  Reply
Hello,

I am trying to write to the tag 270 of a tiff file (image description), but when I execute the following code, nothing is written in a file lacking a description:

ImageEn1.IO.LoadFromFile('d:\temp\test1.tif');
ImageEn1.IO.Params.TIFF_ImageDescription:='Tag 270';
ImageEn1.IO.SaveToFileTIFF('d:\temp\test2.tif');

If a description already exists, it is replaced, but it is not created if no description exists.

Is it necessary to create it beforehand?

Greetings,

Ignacio.

xequte

4712 Posts

Posted - Jun 11 2019 :  19:23:05  Show Profile  Reply
Hi Ignacio

I tried to reproduce the issue as follows:

// Save description to file
ImageEnView1.IO.LoadFromFile('d:\input.tiff');
ImageEnView1.IO.Params.TIFF_ImageDescription:='Tag 270';
ImageEnView1.IO.SaveToFileTIFF('d:\input_Out.tif');

// Ensure cleared
ImageEnView1.Blank;
ImageEnView1.IO.Params.SetDefaultParams;
ShowMessage( ImageEnView1.IO.Params.TIFF_ImageDescription );

// Ensure saved
ImageEnView1.IO.LoadFromFile('d:\input_Out.tif');
ShowMessage( ImageEnView1.IO.Params.TIFF_ImageDescription );


It worked fine in my test. Perhaps it is related to your source image. Please email me d:\temp\test1.tif

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: