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
 ReplaceFileTIFF - Out of memory or Range check err

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
graph_man Posted - May 17 2017 : 08:52:37
Color multipage tiff file
500+ pages

If compression = LZW - result is "Out of memory"
If compression = uncompressed - result is "Range check error"

How to fix it.

ps
Tested under Win7 and Win10
Builder 2010
Latest ImageEn
9   L A T E S T    R E P L I E S    (Newest First)
graph_man Posted - May 21 2017 : 13:49:48
Such files get more and more common.
xequte Posted - May 21 2017 : 03:07:15
Hi

These are *massive* files. We are just investigating whether it is practical to sort them.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - May 19 2017 : 13:37:01
I have sent my test files to Nigel.
graph_man Posted - May 17 2017 : 16:56:00
ReplaceFileTIFF = DeleteTIFFIm + InsertToFileTIFF

Error appears after "DeleteTIFFIm" !!!
graph_man Posted - May 17 2017 : 16:21:19
I use the same command

ImageEnView1.IO.Params.TIFF_ImageIndex := index;
ImageEnView1.IO.LoadFromFileTIFF('D:\MyImage.tif');

after editing this page I use

ImageEnView1.IO.ReplaceFileTIFF(...)


ps
> I recompiled as Win64

What program and version do you use?
w2m Posted - May 17 2017 : 12:48:34
ImageEnView can only load a tiff file with one page so are you specifying the index of the multipage tiff file to open?
// Load the second image in the MyImage.tif file
ImageEnView1.IO.Params.TIFF_ImageIndex := 1;
ImageEnView1.IO.LoadFromFileTIFF('D:\MyImage.tif');

Your discussion so far is not providing sufficient information. Try making a demo to show what you are doing and provide a sample image you are testing so we can be more helpful.

I did some testing here by adding images to a multiframe tiff file to try to see what happens when too many images and too much memory is required. I added the images to ImageEnMView and also added them to ImageEnView on a pagecontrol which inflates memory requirements. After adding 135 images when compiled with Win32.. no problem. After adding 235 images I got out of memory errors. I recompiled as Win64 and added 235 images with no problem.

My point of all this is ImageEn does not provide unlimited ability to open or save huge images. By compiling for Win64 the number of images that could be opened or saved increased. I have no idea

Nigel, Can you provide some guidance as to how to estimate the number of frames of a specified dimension (ie. 1024x768) that can be added to ImageEnMView for a given target platform- Win32 andWin64 for a pc with a given amount of memory available (ie. 8 gb- 16 gb.)?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - May 17 2017 : 12:41:38
ImageEnView - working with one page only
w2m Posted - May 17 2017 : 09:13:28
I suspect this is a memory problem. 500 pages is quite a lot. What components are you using to load and display the images?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
graph_man Posted - May 17 2017 : 09:06:04
File size - 1.2 and 4.2 GB