pngquant icon indicating copy to clipboard operation
pngquant copied to clipboard

Any way to use this library on iOS with Swift

Open DanielZanchi opened this issue 5 years ago • 3 comments

as the title says, is there any possible solution to use this library on a iOS device with Swift?

Thanks in advance

DanielZanchi avatar Nov 14 '18 13:11 DanielZanchi

Yes.

You can call it via Objective C or C bridging header in Swift. Add C files to your project and include the h file. Calls are documented here https://pngquant.org/lib

Please note that Apple doesn't like GPL in the app store, but you can get AppStore compatible license here https://supso.org/projects/pngquant

kornelski avatar Nov 14 '18 13:11 kornelski

@Danny182 were you able to make that work? I'm also interested in use it in an ios app

gholias avatar Dec 04 '18 02:12 gholias

I didn’t try since it’s GPL

DanielZanchi avatar Dec 04 '18 09:12 DanielZanchi