Skip to content

Commit

Permalink
Output the stream directly, don't convert to string first.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Feb 13, 2017
1 parent 9de1034 commit c23be22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion framework/Image/lib/Horde/Image/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,11 @@ public function toFile($data = null)
public function display()
{
$this->headers();
echo $this->raw(true);
$data = $this->raw(true, array('stream' => true));
$output = fopen('php://output', 'w');
while (!feof($data)) {
fwrite($output, fread($data, 8192));
}
}

/**
Expand Down

0 comments on commit c23be22

Please sign in to comment.