mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Speed up image fetch
This commit is contained in:
@@ -53,13 +53,13 @@ if ($in{'scale'}) {
|
||||
($jpegin, $jpegout) = &pipeopen("pnmscale $scale 2>/dev/null | cjpeg");
|
||||
print $jpegin $type;
|
||||
print $jpegin $size;
|
||||
while(read($pnmout, $buf, 1024)) {
|
||||
while(read($pnmout, $buf, 32768)) {
|
||||
print $jpegin $buf;
|
||||
}
|
||||
close($jpegin);
|
||||
close($pnmout);
|
||||
print "Content-type: image/jpeg\n\n";
|
||||
while(read($jpegout, $buf, 1024)) {
|
||||
while(read($jpegout, $buf, 32768)) {
|
||||
print $buf;
|
||||
}
|
||||
close($jpegout);
|
||||
|
||||
Reference in New Issue
Block a user