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
 Detecting if TIFF is Tiled

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
Ronald Posted - Feb 01 2015 : 11:06:08
Hello,

Anyone who knows how to detect if a tiff file image layout is tiled, without loading the image (which can be slow for big files)?

I could not find a suitable function in tiff functions, nor IO.Params.

Regards, Ronald
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Feb 05 2015 : 03:37:03
Hi Ronald,

Sorry I neglected TIETIFTagsReader. You should be able to use:

with TIETIFTagsReader.CreateFromFile(’test.tif', 0) do
begin
  TileWidth  := GetInteger(322);
  TileLength := GetInteger(323);
  Free();
end;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
xequte Posted - Feb 03 2015 : 22:17:26
Hi Ronald

You're right, there is some functionality in ImageEn to handle TIFF tiles (e.g. IO.Params.TIFF_GetTile). Unfortunately to load the header data without the image would require TImageEnIO.ParamsFromFile, which does not expose the TileWidth and TileLength tags.

Let me consult with Fabrizio who may have some suggestions.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Ronald Posted - Feb 03 2015 : 05:32:47
Hi Nigel,

Class TTIFFReaderContext contains members TileWidth and TileHeight. If values are not the same as ImageWidth and ImageHeight, then image is tiled.

What I do not understand is: get those values from a tiff file without loading the image data?

Regards, Ronald
xequte Posted - Feb 02 2015 : 15:24:47
Hi Ronald

If you cannot control the source of the images, then I cannot see any ImageEn functionality that would detect an image of this sort.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Ronald Posted - Feb 02 2015 : 04:46:04
Hi Nigel,

Download link for sample image is sent to you via e-mail.

Regards, Ronald
xequte Posted - Feb 01 2015 : 17:04:17
Hi Ronald

Sorry can you explain in more detail, or post an example image.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com