0

I'm creating a very simple macOS app to convert images to different formats, right now I want to convert png images to the webp format.

The webp format comes from google, so google published binaries to do the decoding/encoding to this format, I can call these binaries from my console and do the conversion, but my question is how would I go embedding and calling these binaries from a Swift/XCode project?

https://developers.google.com/speed/webp#webp_converter_download

If it is possible can you add some pictures to guide me exactly on the steps I need to follow?

I'm a complete noob when it comes to XCode development, so any help is appreciated, many thanks!

Oscar Franco
  • 4,925
  • 2
  • 29
  • 48
  • 2
    You can embed a binary [the same way you embed any other resource files](https://stackoverflow.com/questions/10247680/adding-resource-files-to-xcode), and then you can [launch it as a process](https://stackoverflow.com/questions/48333607/how-to-launch-an-external-process). – Sweeper Sep 16 '21 at 06:17
  • Thanks for pointing it out! that worked! – Oscar Franco Sep 16 '21 at 08:38

0 Answers0