ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Writing tiff description

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Nacho Posted - Jun 11 2019 : 05:18:44
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.
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 11 2019 : 19:23:05
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