can't open large size jpg in pictview

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
omega
Posts: 196
Joined: 09 Dec 2005, 19:21

can't open large size jpg in pictview

Post by omega »

I have a jpg file of 480 MB, pictview can't open it and display the following error: out of memory

Windows built in image viewer can though it took couple of minutes to generate it.
User avatar
SvA
Posts: 483
Joined: 29 Mar 2006, 02:41
Location: DE

Re: can't open large size jpg in pictview

Post by SvA »

What are the image dimensions (width, height, color depth).
Are you on x86 or x64 Windows?, 32 or 64 bit AS?
omega
Posts: 196
Joined: 09 Dec 2005, 19:21

Re: can't open large size jpg in pictview

Post by omega »

Width: 27419 pixels
Height: 21012 pixels
Color: TrueColor 24Bit
Format: JFIF 1.1
Compression: Lossy + Huffman coding
Size in memory: 1728384084 bytes
File size: 503683764 bytes

OS: Win 7 x64, running AS in 32 bit
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: can't open large size jpg in pictview

Post by Jan Patera »

omega wrote:I have a jpg file of 480 MB, pictview can't open it and display the following error: out of memory
Size in memory: 1728384084 bytes
Running AS in 32 bit
Well, this is an expected behavior. 32bit AS can in theory allocate up to 2 GB. Given memory fragmentation and other needs of AS, its plugins and other DLL's loaded into its memory, it is quite unlikely that PV could allocate 1.7GB for a single image.
RoyalB
Posts: 1
Joined: 14 Jan 2016, 13:04

Re: can't open large size jpg in pictview

Post by RoyalB »

Hi Jan, I have a 1.4gb image and 32bit AS so I thought I would be fine considering that 1.4gb is below 2gb but I can't open my image either. Does this mean I need to buy more memory?
Last edited by RoyalB on 24 Nov 2023, 19:35, edited 9 times in total.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5229
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: can't open large size jpg in pictview

Post by Jan Rysavy »

If you have 4GB RAM, more memory would not help. The problem is probably in PictView allocating large memory blocks. 32bit memory space is fragmented by DLLs, heaps, etc.
Post Reply