Page 2 of 2

Re: Using ImagePluginPNG to (un)compress a memorybuffer

Posted: Sat Feb 20, 2010 7:29 pm
by Rescator
Have to give thumbs up to the last two posts here. zlib.lib is the best solution and I really wish PureBasic had that as it's default compression. (4.5+ maybe?)

Btw! Do you really need to go into usr/lib/ ? I kinda assumed that zlib.lib was distributed with all PureBasic versions on all platforms?

Re: Using ImagePluginPNG to (un)compress a memorybuffer

Posted: Sat Feb 20, 2010 10:35 pm
by javabean
PureBasic uses the deflate and inflate functions (according to the PNG specification) for its PNG ImagePlugin. So the zlib library is most probably part of each distribution.

Re: Using ImagePluginPNG to (un)compress a memorybuffer

Posted: Fri May 07, 2010 1:12 pm
by c4s
The solution from ts-soft doesn't work anymore for PB 4.50 Beta 4?! Can anyone confirm this and hopefully say what I can do to fix it?

And by the way:
For decompression I alway get -3 as a result but the compression worked fine.


Edit:
Sorry, I'm not fully sure but I think it was an error on my side.