convert: Memory allocation failed `Cannot allocate memory'
Posted: 2011-03-17T01:15:27-07:00
Hi Magick,
I am getting the following error while processing .psd files of large size approx 7MB.
convert: Memory allocation failed `Cannot allocate memory'
convert: Memory allocation failed `Cannot allocate memory'.
The .psd file can be downloaded from the below mentioned location
http://www.mediafire.com/?6tmdj93u54qu8l4
The command which i am using for converting the file is a two way process.
step1 : convert-define jpeg:size=50x50 filename.psd -thumbnail '50x50>' -background gray75 -gravity center -extent 50x50 -strip intermediateFilename.gif
Step2: convert intermediateFilename.gif -matte -virtual-pixel transparent -channel A -blur 0x4 -threshold 50% +channel finalimage.gif
i have set the environment variable
export MAGICK_TEMPORARY_PATH="$MAGICK_TEMPORARY_PATH:/apps/tmp" because the temporary folder does not have enough memory space
when i run the df space is shows:
/dev/mapper/rootvg-homelv
4128448 2388092 1530644 61% /home
/dev/mapper/rootvg-optlv
4128448 166128 3752608 5% /opt
/dev/mapper/rootvg-tmplv
2064208 549816 1409536 29% /tmp
/dev/mapper/rootvg-usrlv
6192704 1771256 4106876 31% /usr
/dev/mapper/rootvg-varlv
5465704 297956 4890060 6% /var
/dev/mapper/appsvg-appslv
309637120 208267928 85640552 71% /apps
So i guess it has enough memory space in the /apps folder but still i am getting cannot allocate memory. Does it have to with the RAM on my server. let me know how i can resolve this critical issue. Any help will be appreciated.
I will also post my comments if the error is resolved so that it will be useful for others who get similar errors.
Thanks
I am getting the following error while processing .psd files of large size approx 7MB.
convert: Memory allocation failed `Cannot allocate memory'
convert: Memory allocation failed `Cannot allocate memory'.
The .psd file can be downloaded from the below mentioned location
http://www.mediafire.com/?6tmdj93u54qu8l4
The command which i am using for converting the file is a two way process.
step1 : convert-define jpeg:size=50x50 filename.psd -thumbnail '50x50>' -background gray75 -gravity center -extent 50x50 -strip intermediateFilename.gif
Step2: convert intermediateFilename.gif -matte -virtual-pixel transparent -channel A -blur 0x4 -threshold 50% +channel finalimage.gif
i have set the environment variable
export MAGICK_TEMPORARY_PATH="$MAGICK_TEMPORARY_PATH:/apps/tmp" because the temporary folder does not have enough memory space
when i run the df space is shows:
/dev/mapper/rootvg-homelv
4128448 2388092 1530644 61% /home
/dev/mapper/rootvg-optlv
4128448 166128 3752608 5% /opt
/dev/mapper/rootvg-tmplv
2064208 549816 1409536 29% /tmp
/dev/mapper/rootvg-usrlv
6192704 1771256 4106876 31% /usr
/dev/mapper/rootvg-varlv
5465704 297956 4890060 6% /var
/dev/mapper/appsvg-appslv
309637120 208267928 85640552 71% /apps
So i guess it has enough memory space in the /apps folder but still i am getting cannot allocate memory. Does it have to with the RAM on my server. let me know how i can resolve this critical issue. Any help will be appreciated.
I will also post my comments if the error is resolved so that it will be useful for others who get similar errors.
Thanks