Skip to content

nathanwhy/pngquant.swift

 
 

Repository files navigation

pngquant.swift

What's This?

pngquant.swift the package to easy compress UIImage to PNG data with pngquant

Quantinized PNG will be much low size with the same quality

Supported iOS, Mac Catalyst and MacOS

// Compress data
let compressed:Data = try UIImage().pngQuantData()

TODO

  • Handle files
  • Tests

About

Indexed PNG encoder in swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 82.0%
  • C++ 8.7%
  • Objective-C++ 5.8%
  • Swift 3.5%