masterexploder/PHPThumb — Issue #47: preserveAlpha doesn't work when using a stream
Author: needathinkle
Created: 2011-11-01 22:17:55+00:00
State: open

When using a stream, the format is set to STRING, thus the preserveAlpha function won't work for PNGs. A simple fix:

```protected function preserveAlpha ()
{
if (($this->format == 'PNG' || $this->format == 'STRING') && $this->options['preserveAlpha'] === true)```