{"id":53221,"library":"muesli-smartcrop","title":"Smartcrop","description":"A content aware image cropping library based on Jonas Wagner's smartcrop.js.","status":"active","version":"0.3.0","language":"go","source_language":null,"source_url":"https://github.com/muesli/smartcrop","tags":["image","cropping","content-aware","library"],"install":[{"cmd":"go get github.com/muesli/smartcrop","lang":"bash","label":"Install github.com/muesli/smartcrop"}],"dependencies":[],"imports":[{"symbol":"smartcrop","correct":"github.com/muesli/smartcrop"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"github.com/muesli/smartcrop\"\n\t\"image/jpeg\"\n\t\"os\"\n)\n\nfunc main() {\n\tf, _ := os.Open(\"input.jpg\")\n\tdefer f.Close()\n\timg, _ := jpeg.Decode(f)\n\tanalyzer := smartcrop.NewAnalyzer()\n\ttopCrop, _ := analyzer.FindBestCrop(img, 200, 200)\n\tfmt.Printf(\"Best crop: %+v\\n\", topCrop)\n}","lang":"go","description":"Finds the best crop for an image."},"warnings":[],"env_vars":null,"search_vec":"'awar':4,18 'base':8 'content':3,17 'content-awar':16 'crop':6,15 'imag':5,14 'jona':10 'librari':7,19 'smartcrop':1 'smartcrop.js':13 'wagner':11","created_at":"2026-06-15T07:31:39.632665+00:00","updated_at":"2026-06-15T07:31:39.632665+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/muesli/smartcrop","github":"https://github.com/muesli/smartcrop","docs":"https://pkg.go.dev/github.com/muesli/smartcrop#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}