avalanche123/Imagine — pull request #83 by doapp-ryanp (2011-10-29 19:42:55+00:00)
Title: Set Content-type header on show()

This will set the Content-type HTTP header for both GD and Imagick libraries when show() is called, so image will be correctly rendered in web browser.

You may want to add some notes in the doc/wiki that when calling show() the php script must not output any characters (even new lines) before/after show() is called. Ex - the following will cause img not to be rendered in browser:

```php

load($imgBits);
$image->thumbnail(new \Imagine\Image\Box(50, 50))->show('jpg');
```