vikaspa Posted June 4, 2011 Share Posted June 4, 2011 dear all refer i am using a script that resizes images on upload (user to upload from mpc) which works satisfactorily but when i try for many file from a directory , and process it one by one it stops processing abruptly (there are more than 300 images to be process each size of more than 2 MB refer http://savarkarsmarak.com/imgalbum.php files are attached [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/ Share on other sites More sharing options...
mikesta707 Posted June 4, 2011 Share Posted June 4, 2011 You may be going over the max execution time. What exactly happens? is there an error, or does the script inexplicably stop executing? Do you have error reporting turned on? Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225127 Share on other sites More sharing options...
vikaspa Posted June 4, 2011 Author Share Posted June 4, 2011 it i spossible that there is limit for max execution time ? how to deal with it i dont know how to enable errors Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225132 Share on other sites More sharing options...
jcbones Posted June 4, 2011 Share Posted June 4, 2011 Does your server have imageMagick installed? This would be much faster, with a lot less overhead than the GDLibrary. Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225136 Share on other sites More sharing options...
vikaspa Posted June 4, 2011 Author Share Posted June 4, 2011 I have put following code set_time_limit(0); ini_set('memory_limit', '128M'); ini_set('display_errors', 'On'); on top of the code Refer attachment [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225139 Share on other sites More sharing options...
vikaspa Posted June 4, 2011 Author Share Posted June 4, 2011 I tried same cod eon other server It is working fine procesed approx 11 files without error may i ask how to activate displaying the rrror ? [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225141 Share on other sites More sharing options...
vikaspa Posted June 4, 2011 Author Share Posted June 4, 2011 Dear all Pls guide me to clear cache assuming the problem is with non clearance of cache Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225152 Share on other sites More sharing options...
vikaspa Posted June 4, 2011 Author Share Posted June 4, 2011 I tried another code Got following error Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 10368 bytes) in /home/savarkar/public_html/resizedirimages.php on line 16 how can i fix this up Please please help .. code is attached [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/238396-problem-with-image-resizing/#findComment-1225162 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.