{"id":23050816,"url":"https://github.com/geta/imageresizer.plugins.autocrop","last_synced_at":"2026-06-24T08:32:24.272Z","repository":{"id":45946289,"uuid":"207033237","full_name":"Geta/ImageResizer.Plugins.AutoCrop","owner":"Geta","description":"Automatic cropping for images with a flat background","archived":false,"fork":false,"pushed_at":"2021-11-25T14:33:31.000Z","size":1531,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-03T03:42:31.425Z","etag":null,"topics":["crop","image-processing","image-resizer","jpg","png"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Geta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-09-07T22:36:00.000Z","updated_at":"2021-12-09T12:42:21.000Z","dependencies_parsed_at":"2022-09-24T18:42:10.528Z","dependency_job_id":null,"html_url":"https://github.com/Geta/ImageResizer.Plugins.AutoCrop","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Geta/ImageResizer.Plugins.AutoCrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FImageResizer.Plugins.AutoCrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FImageResizer.Plugins.AutoCrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FImageResizer.Plugins.AutoCrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FImageResizer.Plugins.AutoCrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Geta","download_url":"https://codeload.github.com/Geta/ImageResizer.Plugins.AutoCrop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Geta%2FImageResizer.Plugins.AutoCrop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34724735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crop","image-processing","image-resizer","jpg","png"],"created_at":"2024-12-15T23:38:07.965Z","updated_at":"2026-06-24T08:32:24.236Z","avatar_url":"https://github.com/Geta.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ImageResizer.Plugins.AutoCrop\n\n* Master\u003cbr\u003e\n![](http://tc.geta.no/app/rest/builds/buildType:(id:GetaPackages_ImageResizerPluginsAutoCropAutomator_00ci),branch:master/statusIcon)\n\n## Description\n\nAutomatic cropping for images with a flat background.\nWorks with ImageResizer.NET 4.0.5 and above.\n\nUses either a relative luminance tolerance or an edge detection filter to determine which area to crop.\nPreserves intended aspect ratio of image.\n\n## Features\n\n- Crops images with a flat background\n- Configurable x and y padding\n- Configurable treshold\n- Configurable analysis method (color difference or edge detection)\n- Can override FitMode of regular resizer\n\n## How to get started?\n\nRequires ImageResizer 4.0.5 or above\n\n- `install-package ImageResizer.Plugins.AutoCrop`\n\nWill add the following to `web.config`\n\n```\n\u003cconfiguration\u003e\n    \u003cresizer\u003e\n        \u003cplugins\u003e\n            \u003cadd name=\"AutoCrop\" /\u003e\n        \u003c/plugins\u003e\n    \u003c/resizer\u003e    \n\u003c/configuration\u003e\n```\n\n## Details\n\nPlugin unlocks the ability to use the following query parameters for images\n\n| Parameter | Description | Example |\n| --------- | ----------- | ------- |\n| autoCrop | activates the plugin with the provided values | _?autoCrop=10_ or _?autoCrop=10;20;30_ |\n| _x-padding_ | the first provided parameter value | 10 |\n| _y-padding_ | the second provided parameter value | 10;_20_ |\n| _threshold_ | the third provided parameter value, background color deviation threshold | 10;20;_30_ |\n| autoCropMode (optional) | overrides the fit mode if the autoCrop is successfully completed | _?autoCropMode=pad_ |\n| autoCropMethod (optional) | determines which method to use (tolerance or edge) | _?autoCropMethod=tolerance_ |\n| autoCropDebug (optional) | displays a debug visualisation of how the plugin evaluated instead of cropping | _?autoCropDebug=1_ |\n\n## Package maintainer\n\nhttps://github.com/svenrog\n\n## Changelog\n\n[Changelog](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fimageresizer.plugins.autocrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeta%2Fimageresizer.plugins.autocrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeta%2Fimageresizer.plugins.autocrop/lists"}