in reply to GD resize problems
This almost certainly isn't a GD related problem, but rather a problem with your file handling code. Specifically:
while ( <$filehandle> ){ print UPLOADFILE; }
While that will work fine for text files containing lines, it will likely screw up for image files that don't contain lines.
I'd suggest you make that:
{ local $/ = \65536; local $\; while ( <$filehandle> ){ print UPLOADFILE; } }
And see how you get on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: GD resize problems
by horbor (Novice) on Jan 17, 2011 at 13:27 UTC | |
|
Re^2: GD resize problems
by horbor (Novice) on Jan 17, 2011 at 12:30 UTC |