Not enough memory

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Bingo
Posts: 25
Joined: Fri Sep 10, 2004 7:00 am

Not enough memory

Post by Bingo »

Hi all !

I am still fighting with very large images.
I just want to crop a portion of a png (22.000x32.000 pixels approximatively), using this command line :
nconvert -crop 4000 4000 1000 1000 -o cropped.png original.png

The output I get is :
** NCONVERT v4.25 (c) 1991-2004 Pierre-E Gougelet (Oct 8 2004/15:42:00) **
Version for Windows NT/9x/2000 (All rights reserved)
** This is a freeware software (for non commercial use)

Error: Not enough memory (original.png)

But nconvert does not even try to load the image, so I think there is some kind of hardcoded limit here. Is there a way to work aruond this ? I think my computer should handle this kind of images (2 GB RAM, 4GB swapfile) ?

Thanks a lot !
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Not enough memory

Post by xnview »

Bingo wrote:Hi all !

I am still fighting with very large images.
I just want to crop a portion of a png (22.000x32.000 pixels approximatively), using this command line :
nconvert -crop 4000 4000 1000 1000 -o cropped.png original.png

The output I get is :
** NCONVERT v4.25 (c) 1991-2004 Pierre-E Gougelet (Oct 8 2004/15:42:00) **
Version for Windows NT/9x/2000 (All rights reserved)
** This is a freeware software (for non commercial use)

Error: Not enough memory (original.png)

But nconvert does not even try to load the image, so I think there is some kind of hardcoded limit here. Is there a way to work aruond this ? I think my computer should handle this kind of images (2 GB RAM, 4GB swapfile) ?
Strange the limit is 64000x64000. I think that your file is big (to test it)??
Pierre.
Post Reply