Hi
I've got some simple code to write out the same image in 3 different formats: png, jpeg and gif. The image is correctly written for jpeg and gif, but I get a zero length file for the png. Any idea why this would happen, or does it look like a bug?
On 05/12/2013 11:20 AM, "Graham MacDonald" <grahamam...@gmail.com> wrote:
>
> Thanks, but I don't get an error from png.Encode. (I should have put the check in the given example, though I had it in an earlier version.) Adding the check to this example shows the returned value from png.Encode is nil.
>
Ah, then perhaps the issue is that you're not flushing the bufio.Writer