splitting 32768x32768 image to tiles causes crash

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
fo0k
Posts: 3
Joined: 2014-02-05T10:24:36-07:00
Authentication code: 6789

splitting 32768x32768 image to tiles causes crash

Post by fo0k »

I'm trying to split a 32768x32768 16bit greyscale image into tiles using the following:

Code: Select all

convert E:\imagemagicK\edits.png -crop 16x16@ +repage E:\imagemagicK\edits_split.png
on running this I get a crash 'imageMagick Studio library and utility programs has stopped working'

If I try with a smaller image (4096x4096 for example) it works.


I understand that imagemagick can handle 'large' images but I'm not sure if there is more that I need to setup for this. any help appreciated, thanks.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: splitting 32768x32768 image to tiles causes crash

Post by snibgo »

You command worked fine for me, Windows 8.1, 12 GB RAM, > 100 GB free disk. It took 17 minutes.

You may have run out of free disk. Your image needs about 8.5 GB of memory. On my previous Win7 computer with less RAM and disk, I would attach an external disk and include "-define registry:temporary-path=H:\temp" in my convert command.
snibgo's IM pages: im.snibgo.com
fo0k
Posts: 3
Joined: 2014-02-05T10:24:36-07:00
Authentication code: 6789

Re: splitting 32768x32768 image to tiles causes crash

Post by fo0k »

Thank you.

snibgo wrote:You command worked fine for me, Windows 8.1, 12 GB RAM, > 100 GB free disk. It took 17 minutes.

You may have run out of free disk. Your image needs about 8.5 GB of memory. On my previous Win7 computer with less RAM and disk, I would attach an external disk and include "-define registry:temporary-path=H:\temp" in my convert command.

Thanks - Well is good to hear at least and your specs are the same as mine - although I have the space on secondary drives and not on C: (only 10GB left atm)

So I tried your temp path fix above but same crash (a second after running)

Code: Select all

convert E:\imagemagicK\32768_grey.png -crop 16x16@ +repage E:\imagemagicK\32768_greysplit.png
-define registry:temporary-path=E:\temp
This looks ok?

need to read up a bit on links above
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: splitting 32768x32768 image to tiles causes crash

Post by snibgo »

I suspect the "-define" needs to be at the start, not the end. While the command is running, use another window to see if files appear in E:\temp, and Task Manager can tell you about memory and disk usage.

EDIT: I forgot to mention, don't forget that crashes can leave big files in the temporary area. This might be why your next attempt immediately failed.
snibgo's IM pages: im.snibgo.com
fo0k
Posts: 3
Joined: 2014-02-05T10:24:36-07:00
Authentication code: 6789

Re: splitting 32768x32768 image to tiles causes crash

Post by fo0k »

I have solved this. Was not related to IM. Firewall had some 'memory buffer protection thing' going on which was also causing me a crash in 3dsmax at the same resolution. only installed the FW a week back. Sorry but many thanks for suggestions.

All working great.. also took 17 mins here..!

Great bit of software.
Post Reply