Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How would I change resolution of a graphic file on the fly during U/L

Status
Not open for further replies.

teka2112

Technical User
Feb 5, 2003
14
0
0
US
HI all

Ive got a file upload tool (up.cgi) on my server. Users can upload a few different types of files (file input from HTML FORM points to my upload script (up.cgi) then gets saved on my server using:

sub Store_Results {
my $data;
my $bytes_count;
$size = $bytes_count = 0;
open (STORAGE, ">$Directory/$File")
or die "Error: $Directory/$File: $!\n";
binmode STORAGE;
while ($bytes_count = read($File_Name, $data, 1024)) {
$size += $bytes_count;
print STORAGE $data;
}
close STORAGE;
# exit;
}

pretty basic...

The thing is - some of these files include image files (jpg, png) which need to be resized to a maximum of 128x112 pixels.

what is MAGIK and is this what I should use?

any ideas?

any help here would be appreciated :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top