javascript - 这个壁纸网站,用的什么黑科技可以智能裁剪图片?
ringa_lee
ringa_lee 2017-04-10 15:53:33
0
1
788

www.l2so.com
该网站能智能裁剪图片到各个不同的尺寸,并且称“Different from other wallpaper websites,L2so Wallpaper using the latest Smart Image Cropping technology that can intelligently recognize the main part of a wallpaper and crop the most perfect sizes of a wallpaper”。
我试了试很多张图片,确实能把图片主体识别出来,比如:
http://www.l2so.com/wallpaper/Anushka-sharma-32204

裁剪成手机所用尺寸360x640后,变成这样:

真TM精准啊,它咋知道图中美女才是重点???!!
http://www.l2so.com/wallpaper/Taylor-Swift-50-32745

这个服务器知道这是Taylor swift???裁剪成智能手机的480×800后:

ringa_lee
ringa_lee

ringa_lee

reply all(1)
迷茫

https://github.com/jwagner/smartcrop.js/

终于见你问了个有意思的问题……

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template