Sergey,
>> I fixed that issue by resetting the compression level to the default
>> value before using or not params.
>
>
> Probably it can be made local to the write method, but this version looks
fine too.

You're right. I will improve that, I did it too quickly.

Maybe I should also improve other DeflaterOutputStream usage: 1 per
keyword, see deflate (byte []), it seems roughly unoptimized...

Cheers,
Laurent

>
>
>>
>> Here is an updated webrev:
>> http://cr.openjdk.java.net/~lbourges/png/PNGWriter-6488522.2/
>>
>> The jtreg ImageCompressionTest still passes (I did not update it).
>>
>> Cheers,
>> Laurent
>
>
>
> --
> Best regards, Sergey.

Reply via email to