{"id":17261439,"url":"https://github.com/dmitrysharabin/mavo-cropper","last_synced_at":"2025-07-02T11:34:51.412Z","repository":{"id":35847420,"uuid":"191612359","full_name":"DmitrySharabin/mavo-cropper","owner":"DmitrySharabin","description":"Edit (crop, scale, rotate, flip) an image in place and upload it to the chosen backend. Uses the Cropper.js library.","archived":false,"fork":false,"pushed_at":"2023-10-28T09:53:05.000Z","size":996,"stargazers_count":6,"open_issues_count":5,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-27T20:51:16.636Z","etag":null,"topics":["cropperjs","mavo","plugins"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DmitrySharabin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-06-12T17:01:21.000Z","updated_at":"2024-10-04T11:37:26.000Z","dependencies_parsed_at":"2024-10-15T07:51:12.150Z","dependency_job_id":"456a63b1-826f-421a-b0e2-15e3f54b9649","html_url":"https://github.com/DmitrySharabin/mavo-cropper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitrySharabin%2Fmavo-cropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitrySharabin%2Fmavo-cropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitrySharabin%2Fmavo-cropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DmitrySharabin%2Fmavo-cropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DmitrySharabin","download_url":"https://codeload.github.com/DmitrySharabin/mavo-cropper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248837285,"owners_count":21169374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cropperjs","mavo","plugins"],"created_at":"2024-10-15T07:51:04.316Z","updated_at":"2025-04-14T07:12:20.512Z","avatar_url":"https://github.com/DmitrySharabin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mavo Cropper\n\n![Cropper](https://raw.githubusercontent.com/DmitrySharabin/mavo-cropper/master/screenshots/Preview.png)\n\n*****Credits*****: The image in the screenshot is taken from [here](https://fengyuanchen.github.io/cropperjs/).\n\nSimply add the plugin to your app to enable Cropper functionality on **every image property**.\n\nCropper supports:\n\n- cropping\n- rotation\n- flipping\n- zooming (either by wheeling mouse or by touch).\n\nThere is a couple of things you should know before starting working with Cropper:\n\n- use `Shift` key while *resizing* existing cropping box to preserve its aspect ratio\n- use `Shift` key while *creating* new cropping box to get the square one\n- use `double click` to switch between *moving* a crop box and *panning* an image (when it is zoomed in)\n\n## Customize Cropper\n\nCropper supports [a bunch of options for customizing the way it works](https://github.com/fengyuanchen/cropperjs#options). You can specify these options on a per-property basis by using the `mv-cropper-options` attribute.\nThe syntax of this attribute is a CSS-like list of declarations, where you can use either commas or semicolons to separate the *option-value pairs*, like so: `mv-cropper-options=\"autoCrop: false, aspectRatio: 1.6\"`. If you want to set an option to `true`, you can just provide no value.\n\n## UI customization: Preview\n\nYou may also find useful the `cropper-preview` class for styling the preview area.\n\n## UI customization: Toolbar\n\n![Toolbar](https://raw.githubusercontent.com/DmitrySharabin/mavo-cropper/master/screenshots/Toolbar.png)\n\nYou can use these [CSS variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_variables) in your CSS (via `var(--variable-name)`) to customize the toolbar.\n\n| Name | Value |\n| ---- | ----- |\n| `--rotate-left-btn` | data URI of Cropper rotate left icon |\n| `--rotate-right-btn` | data URI of Cropper rotate right icon |\n| `--flip-horizontal-btn` | data URI of Cropper flip horizontal icon |\n| `--flip-vertical-btn` | data URI of Cropper flip vertical icon |\n| `--crop-btn` | data URI of Cropper crop icon |\n| `--upload-btn` | data URI of Cropper upload icon |\n| `--update-btn` | data URI of Cropper update icon |\n| `--select-drop-down-arrow` | data URI of Cropper drop-down list arrow icon |\n\n## UI customization: Text \u0026 Localization\n\nYour app needs to be in a different language? No problem! You can customize every bit of Cropper displayed text, whether that is to change the text displayed to your liking or to localize it to a different language.\n\nHere is the list of `id`s of phrases to change/localize and their default values:\n\n| id | Default Value |\n|---|---|\n| `cropper-image-preview` | Image preview |\n| `cropper-upload` | Upload Image |\n| `cropper-show` | Show Crop Box |\n| `cropper-hide` | Hide Crop Box |\n| `cropper-rotate-left` | Rotate Left |\n| `cropper-rotate-right` | Rotate Right |\n| `cropper-flip-horizontal` | Flip Horizontal |\n| `cropper-flip-vertical` | Flip Vertical |\n| `cropper-aspect-ratio` | Crop Box Aspect Ratio |\n| `cropper-aspect-ratio-free` | Free |\n| `cropper-aspect-ratio-custom` | Custom |\n| `cropper-update` | Update Preview |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitrysharabin%2Fmavo-cropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitrysharabin%2Fmavo-cropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitrysharabin%2Fmavo-cropper/lists"}