1. I think you need to change the extension of ur image file to either JPG for processing the file or
2. possibly since it is going out of memory then try using less expensive methods to read the file in the directory i.e. rather than reading the entire file into an array read it line by line. I am not sure how it works with image file but I am sure there will be some methods to do that.
3. empty the arrays or hash or the any data structure whichever you are using after using it rather than over witing it.
Good Luck !!
1. I understand what desemondo (Friar) is saying but, my intention was that we can reduce the time for doing the manipulations with the file by converting into JPG and see if it is working fine or not. 2. Empty the data structures means that in case you are doing the push or shift operations then it will take a lot of time as compared to using the same in smaller parts.
In reply to Re: Out of memory issue
by snape
in thread Out of memory issue
by ralphch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |