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
 Pagecount tiff + strange almost blank pages
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

geert

Belgium
9 Posts

Posted - Jun 22 2012 :  03:19:29  Show Profile  Reply
I have a problem with pagecount on multipage tiff files.
When i try to get the number of pages it results 0 allways

.params.tiff_pagecount

.params.tiff_imagecount results in number of pages x 2

When we do seekfirst , seeknext , 1st page is ok , 2d page is blank , 3d page is ok , 4th page is blank.

Opening the same tiff file in win7 results in correct result , no extra blank pages are shown.

So there is some strange behaviour , what could be solution ?


Please help , i have to skip 2 pages to get correct result , but i fear that this will not allways give the correct result.

thnx

xequte

6420 Posts

Posted - Jun 22 2012 :  03:30:39  Show Profile  Reply
Hi

Does this happen with all TIFF files (i.e. even ones from a different source) or just a particular type.

How about if you view the image with one of our TIFF demos such as:

http://www.imageen.com/demos/InputOutput/TiffHandler/TiffHandler.zip

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

geert

Belgium
9 Posts

Posted - Jun 22 2012 :  03:55:54  Show Profile  Reply
Hi ,

it's also the same result with the demo example

i get 18 pages while windows only says there are 9 pages.

And every other page is blank (with exeption of a little border)

They are all scanned in with standard scan program, not with image-en component

Go to Top of Page

geert

Belgium
9 Posts

Posted - Jun 22 2012 :  04:08:00  Show Profile  Reply
When running the tiffhandler example i noticed following

Every page that is 'empty' and not shown in windows tiff viewer has a tag

254 'newsubfiletype' with value of 1

the other (normal pages) have value 0

Can i tell image-en component not to show this pages with value 1 ???

Kind regards
Go to Top of Page

xequte

6420 Posts

Posted - Jun 22 2012 :  14:27:35  Show Profile  Reply
Hi

Is this one particular image, or a selection all of the same source? Can you email us some examples?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

geert

Belgium
9 Posts

Posted - Jun 23 2012 :  01:38:51  Show Profile  Reply
I tried to attach example-tiff but it is not allowed.

Can i send it to you via email ?

kind regards

Go to Top of Page

xequte

6420 Posts

Posted - Jun 23 2012 :  03:25:36  Show Profile  Reply
Yes, please send to:

nigel@xequte.com


Also, tell me whether you have multiple images where this issue occurs, or just one.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

geert

Belgium
9 Posts

Posted - Jun 23 2012 :  08:17:19  Show Profile  Reply
I have it with all tiff files till now .

We have a archiving system that makes tiffs , and i'm trying to display them via image-en component.

So all those tiffs have the same result.

They are scanned in via normal scan programs

kind regards
Go to Top of Page

geert

Belgium
9 Posts

Posted - Jun 27 2012 :  00:36:20  Show Profile  Reply
Any hope on solution ???

Go to Top of Page

fab

1310 Posts

Posted - Jul 10 2012 :  04:56:37  Show Profile  Reply
Hi,
there is no error in ImageEn. The blank pages are there and ImageEn correctly returns them to your application.
It is the application decision to discard these blank pages (marked with NewSubfileType=1). Unfortunately current ImageEn version hasn't TIFF_NewSubfileType property, but it will be present from next minor version.
It will be possible to do:
var
  i: integer;
begin
  ImageEnMView1.MIO.LoadFromFile('temp.tif');
  i := 0;
  while i < ImageEnMView1.ImageCount do
  begin
    if ImageEnMView1.MIO.Params[i].TIFF_NewSubfileType = 1 then
      ImageEnMView1.DeleteImage(i)
    else
      inc(i);
  end;
end;

Go to Top of Page

geert

Belgium
9 Posts

Posted - Oct 24 2012 :  07:21:39  Show Profile  Reply
THnx ,

Is there now allready a minor upgrade where this adaptions are made ?

kind regards
Go to Top of Page

xequte

6420 Posts

Posted - Oct 25 2012 :  01:30:44  Show Profile  Reply
Yes, this is available in v4.1.3.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: