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?
Using ImagePluginPNG to (un)compress a memorybuffer
Re: Using ImagePluginPNG to (un)compress a memorybuffer
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
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.
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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!