jwagner / smartcrop.js

Content aware image cropping

Home Page:http://29a.ch/2014/04/03/smartcrop-content-aware-image-cropping

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smartcrop for Swift

petarserbo opened this issue · comments

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

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.

Thank you!