Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: GD resize problems

by Crackers2 (Parson)
on Jan 17, 2011 at 14:30 UTC ( #882669=note: print w/replies, xml ) Need Help??

in reply to GD resize problems

I know you already have a solution, but I think the original problem is buffering. After the

while ( <$filehandle> ){ print UPLOADFILE; }
loop you don't close UPLOADFILE before trying to use the file it's writing to. So likely the last part of the file just isn't flushed to disk yet when GD reads it.

Just to check, could you try adding a close UPLOADFILE after the while loop and see if that fixes things?

Replies are listed 'Best First'.
Re^2: GD resize problems
by horbor (Novice) on Jan 17, 2011 at 15:14 UTC

    Cracker2, you are absolutely right, its just a careless mistake and I just could not see it. Sorry people for taking your time and thank you very much!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://882669]
[LanX]: with different specialized employees in different rooms
[LanX]: communication overhead calls for sensible management
[ambrus]: "different specialized employees in different rooms" => so, there's a cleaner guy who cleans up the vomit from the bathroom every morning?
[erix]: makes me think of MMM too (mythical man month): "adding more people to a project makes it slower"
[erix]: that should be "to an already-too-late- project" I think
[ambrus]: oh yes, we have a pretty good example of that when they reorganized the grill place in the restaurant nearby.
[ambrus]: it now has two more people working there, and they're serving slower and more expensive.

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2017-09-22 13:47 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (264 votes). Check out past polls.