All Projects → willbamford → tinycrop

willbamford / tinycrop

Licence: other
Pure JavaScript image crop library

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to tinycrop

Flutter image cropper
A Flutter plugin for Android and iOS supports cropping images
Stars: ✭ 723 (+1066.13%)
Mutual labels:  crop, image-cropper
Mantis
A photo cropping tool which mimics Photo.app written by Swift.
Stars: ✭ 270 (+335.48%)
Mutual labels:  crop, image-cropper
react-drop-n-crop
An opinionated implementation of react-dropzone and react-cropper
Stars: ✭ 17 (-72.58%)
Mutual labels:  crop, image-cropper
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+3424.19%)
Mutual labels:  crop, image-cropper
xcrop
Mobile image cropping component - Vue React 移动端裁剪组件
Stars: ✭ 27 (-56.45%)
Mutual labels:  image-cropper
powerplant
Optimize and assist planning your garden
Stars: ✭ 75 (+20.97%)
Mutual labels:  crop
react-simple-crop
✂️ A React component library for cropping and previewing images
Stars: ✭ 19 (-69.35%)
Mutual labels:  crop
Android Imagecropview
android image crop library
Stars: ✭ 225 (+262.9%)
Mutual labels:  crop
mpv-scripts
dynamic-crop.lua script for mpv player/lib.
Stars: ✭ 43 (-30.65%)
Mutual labels:  crop
Krishi-Seva
A Farmer friendly app and website to give crop recommendations according to soil samples collected by ICAR and the weather forecast.
Stars: ✭ 22 (-64.52%)
Mutual labels:  crop
vue-crop
[举个例子]https://codesandbox.io/s/910ro8ym9r [演示链接(戳我直达)]http://www.wwwwxy.top/html/blg/
Stars: ✭ 38 (-38.71%)
Mutual labels:  crop
FunFilter
Freely painted area, the software will automatically add filter on its.
Stars: ✭ 15 (-75.81%)
Mutual labels:  crop
vesdk-android-demo
VideoEditor SDK: A fully customizable video editor for your app.
Stars: ✭ 90 (+45.16%)
Mutual labels:  crop
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (+266.13%)
Mutual labels:  crop
krop
A simple graphical tool to crop the pages of PDF files, written in Python/Qt
Stars: ✭ 88 (+41.94%)
Mutual labels:  crop
Vue Croppie
Vue wrapper for croppie
Stars: ✭ 228 (+267.74%)
Mutual labels:  crop
FotoKilof
GUI for ImageMagick
Stars: ✭ 114 (+83.87%)
Mutual labels:  crop
ionic3-image-handling
In this ionic tutorial you will learn how to access the image gallery and take pictures from an ionic app. Also we will show you how to add a image cropper. This ionic tutorial includes a working ionic app example you can reuse for your needs.
Stars: ✭ 35 (-43.55%)
Mutual labels:  image-cropper
ionic4-image-crop-upload
Ionic 4, Angular 7 and Cordova Crop and Upload Image
Stars: ✭ 16 (-74.19%)
Mutual labels:  crop
Google-Images-Search
[PYTHON] Search for image using Google Custom Search API and resize & crop afterwards
Stars: ✭ 121 (+95.16%)
Mutual labels:  crop

tinycrop

Build status NPM version Standard File size

Lightweight pure JavaScript image crop library. Plays nicely with React.

Install from repository

Using NPM:

npm i tinycrop -S

Or Yarn:

yarn add tinycrop

Build from source

  1. Install nodejs
  2. Clone this repository
  3. npm install
  4. npm run build

Create new cropper

var Crop = require('tinycrop')

var crop = Crop.create({
  parent: '#mount',
  image: 'images/portrait.jpg',
  bounds: {
    width: '100%',
    height: '50%'
  },
  backgroundColors: ['#fff', '#f3f3f3'],
  selection: {
    color: 'red',
    activeColor: 'blue',
    aspectRatio: 4 / 3,
    minWidth: 200,
    minHeight: 300,
    width: 400,
    height: 500,
    x: 100,
    y: 500
  },
  onInit: () => { console.log('Initialised') }
});

Events

crop
  .on('start', function (region) { console.log('Start', region) })
  .on('move', function (region) { console.log('Move', region) })
  .on('resize', function (region) { console.log('Resize', region) })
  .on('change', function (region) { console.log('Change', region) })
  .on('end', function (region) { console.log('End', region) });

Demo

http://willbamford.github.io/tinycrop/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].