/    Sign up×
Community /Pin to ProfileBookmark

Resizing Large Quanitiy of Images

Does anyone have any suggestions for method(s) I can incorporate into my script (that resizes large amounts of images at a time) to stop timeouts?

Currently, it seems to timeout after approx. 30 seconds, though no error message pops up. I have set_time_limit set to a high value (86400), so I know that isn’t the problem. The test graphics I’m trying to resize are very small in file size (8K? but pretty huge in pixel size (4000×2000). I’m basically just testing it with extremes to make sure it will work.

For some reason, no matter what I try, the script will stop executing after ~30 seconds. I’ve tried other scripts that people have posted on the PHP Manual site that are supposed to keep your script running for an indefinite period of time and they all stop after 30 seconds. I’m running this script off of the GoDaddy servers and its just the most basic hosting package that I’m using.

Any help on this would be greatly appreciated.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@bokehOct 26.2005 — set_time_limit ('0'); That will stop the script from timing out but the browser may be timing out if you are not sending it something every 15 seconds or so.
Copy linkTweet thisAlerts:
@SheldonOct 26.2005 — This script enabled you to upload and resize any jpg,png or gif images, im sure you can customise it to so more than one at a time by duplicating a few lines

Made by Ryan(Abectech) from these forums. I use it still and its good.

http://www.hotscripts.com/Detailed/41276.html
×

Success!

Help @badg0003 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...