Page 1 of 1

Very large images

Posted: Wed Dec 24, 2003 2:13 pm
by RaymondT
A friend of mine has some quite larges images that needed resizing, so I told him about XnView.
He claims that the program can't handle the images ...
I wonder.. what is the max size XnView can handle ?

Posted: Wed Dec 24, 2003 3:05 pm
by Aokromes
I have made a 11500x11500 bmp file, with a 12000x12000 file it crashes with my setup.

mspaint.exe eats ~60 MB of ram, 1.164 MB of VM ram with that file instead xnview.exe eats 396 MB of ram and 392 MB of VM ram

Re: large images

Posted: Wed Dec 24, 2003 3:44 pm
by Guest
RaymondT wrote:I wonder.. what is he max size XnView can handle ?
To clarify the question, I meant to say "What is the max FILE size XnView can handle ?"

Posted: Fri Dec 26, 2003 7:15 am
by Aokromes
Ok, i have a 15000x15000 pixels 24 bits 72 dpi bmp and the file size is 643 MB (675.000.054 bytes) and i can open with xnview without too much trouble (it takes a bit long time but it's opened).

Posted: Fri Dec 26, 2003 1:52 pm
by helmut
If you have a modern OS like Win 2000 or XP, think the only thing that limits XnView from reading large files is the available memory (RAM). As you know, if the operating system (OS) has to swap to hard disk, all programs will get VERY slow and opening an image may take ages. If an image should be handled in XnView, the image should fully fit into the phyiscal memory (RAM).

So on Aokromes' system with 1024 MByte RAM, a 15000 x 15000 image opens without problems, whereas on an old system with less memory this image might cause problems, already.

Some calculation and numbers for those interested:
In an image with true colour (16 Mio. possible colours per pixel), one pixel of the image will need 8 bit per colour (Red, Green, and Blue), that is 24 bit altogether, which are 3 Bytes per pixel.

So the memory needed for the image calculates:

Image size (uncompressed) = Width [pixel] x Height [pixel] x 3 Bytes

For example:
6000 x 6000 pixels x 3 Bytes = 108,000,000 Bytes = 103 MBytes (Remember that 1 MByte has 1024 x 1024 Bytes)

8000 x 8000 pixel: ~ 192 MByte
9000 x 9000 pixel: ~ 256 MByte
13000x13000 pixel: ~512 MByte

Since the OS, drivers, virus scanner, and other programs started use memory, the image's size must be actually even smaller.

This is just some theories on image sizes and memory usage without considering or knowing XnView internals and optimizations. Pierre knows XnView best, so I am sure that he can give some background info, too. Perhaps other people can add their experience with opening and saving large images in XnView, here.

Posted: Fri Dec 26, 2003 3:21 pm
by Aokromes
I have found a limit, the max size to open a bmp file is 15999x15999 pixels, if the file has 16000x10 it don't be opened. Instead, i can open a 20000x10 tiff file without troubles.

Posted: Wed Jan 21, 2004 3:23 pm
by xnview
Aokromes wrote:I have found a limit, the max size to open a bmp file is 15999x15999 pixels, if the file has 16000x10 it don't be opened. Instead, i can open a 20000x10 tiff file without troubles.
In the next XnView version (1.67), the limit will be 64000x64000!
Pierre.