jwagner / smartcrop.js

Content aware image cropping
http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping
MIT License
12.83k stars 580 forks source link

Smartcrop for Swift #114

Closed petarserbo closed 2 years ago

petarserbo commented 2 years ago

Does the Smatrctop library for Swift exist or something similar to it? I can not find something like this for Swift anywhere

jwagner commented 2 years ago

I'm not aware of any port to Swift either. It probably shouldn't be too hard to port it yourself though. While the code is written in a bit of a convoluted way the algorithm itself is fairly simple: https://github.com/jwagner/smartcrop.js/blob/main/smartcrop.js#L380 and could probably be ported in a few hours.

petarserbo commented 2 years ago

Thank you!