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
 [IEvolution] Issue will re-sampling Tiff Files

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
Steve Griffiths Posted - Dec 20 2012 : 12:22:12
Product: IEvolution
Version: 4.0.1.0

I am having an issue re-sampling multi-page tiffs. I take a large multipage tiff, break it out into single pages, and then re-merge at a lower resolution. I am getting random failures in the merge section. If I run the same source file multiple times, I get a different page failing each time, and sometimes it will go all the way through.

The equivalent Delphi Code does not have this issue.

I would appreciate any assistance with this, and if there is a more straightforward way of re-sampling the file I would appreciate it. I
have provide the loop portion below

Sincerely

Steve Griffiths


for (int i = 1; i < pageCount; i++)
{
	IEImage img = new IEImage(imageFiles[i]);
 
    if (shrink != TiffConstants.DO_NOT_SHRINK)
    {
		Size size = new Size();
        size = CalculateResizeScale(shrink, img, size);
 
		if (!size.IsEmpty)
        {
			img.Resample(size.Width, -1, IEResampleFilter.Lanczos3);
		}
	}
 
    img.IOParams.TIFF_ImageIndex = i;
    lastCount = imgCount;
    imgCount =  img.InsertToTIFF(outFile);
 
 
    img.Dispose();
 
    if (imgCount <= lastCount)
    {
		throw new Exception(string.Format("Page {0} not added",i));
	}
}

1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Jan 02 2013 : 15:48:43
Version 4.0.1 is no more supported. Could you try a newer versions?