-crop dimension limit?

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

Moderators: helmut, XnTriq, xnview

featheredtar
Posts: 3
Joined: Thu Jul 19, 2012 9:16 pm

-crop dimension limit?

Post by featheredtar »

I'm trying to do a batch crop operation where the dimensions of the outputted images excede 10,000 x 10,000 px. It seems that whenever I get above 7000 px for x or y, nconvert stops trying to crop and simply outputs the whole source image. Is this a glitch? Does NConvert have a limit to what it can crop? I doubt it'd be the latter, as 10,000 px isn't very large. Here's my command:

nconvert -out jpeg -q 100 -crop 7337 940 10000 10000 -n 1 10 1 -o G:\test4\test#####.jpg G:\520619\144Scan-120609-####.jpg

Any ideas?
featheredtar
Posts: 3
Joined: Thu Jul 19, 2012 9:16 pm

Re: -crop dimension limit?

Post by featheredtar »

Upon further testing, it seems that the limit for being able to actually crop an image as opposed to outputting the original image is 8300 px for either dimension.
User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

Re: -crop dimension limit?

Post by DOS386 »

featheredtar wrote:Does NConvert have a limit to what it can crop? I doubt it'd be the latter, as 10,000 px isn't very large
Note that 10'000 px x 10'000 px needs 286 MiB just to be stored ... depending from NC's internal memory management, it may need more than the double amount of memory to process your request. But giving up silently is not the best strategy to deal with out-of-memory conditions, crashing is not good either :-(
There is indeed no WinZIP under my rock.