Giter Site home page Giter Site logo

neftaliacosta / awesome-cropper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrew8xx8/awesome-cropper

0.0 1.0 0.0 2.36 MB

jQuery plugin to crop images on client by load from Drag'n'Drop, file select and URL

CSS 7.20% JavaScript 63.69% CoffeeScript 23.26% HTML 5.84%

awesome-cropper's Introduction

Awesome Cropper

Awesome croper is jQuery plugin to produce form component that can upload images from local and remote destinations and set crop area.

WorkFlow:

  • Select Image by File Select, Url or Drag'n'Drop
  • Crop Image to specific size in modal window
  • Upload image with selected area coords

Dependencies

Usage

Load script and styles of plugin:

  <script src="build/jquery.awesome-cropper.js"></script>

  <link rel="stylesheet" href="css/jquery.awesome-cropper.css">

Create cropping component on some hidden input:

  <script>
  $(document).ready(function () {
      $('#sample_input').awesomeCropper(
        { width: 200, height: 200 }
      );
  });
  </script>

Options

width: Width of cropped image height: Height of cropped image Hidden input may looks like this:

  <input id="sample_input" type="hidden" name="test[image]">

awesome-cropper's People

Contributors

andrew8xx8 avatar ruanmer avatar jsleetw avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.