Code Monkey home page Code Monkey logo

imageeditor's Introduction

Simple Javascript image editor

See demo in http://bernardosilva.com.br/imageditor/

HMTL

<script src="js/jquery.min.js"></script>
<script src="js/jquery.Jcrop.min.js"></script>
<script src="js/image-editor.js"></script>
<link rel="stylesheet" href="css/jquery.Jcrop.min.css" type="text/css" />

<div class="imageEditor" style="width:578px;height:400px"></div>

Javascript

imageEditor.init('.imageEditor', true);

Documentação

  • imageEditor.init( selector for base object , [allow open with drap and drop] ]);

  • imageEditor.load( image link or instance of File class );

  • imageEditor.clear( x , y , width , height );

  • imageEditor.clearSelection();

  • imageEditor.undo();

  • imageEditor.floodFill( x , y , tolerance, continuo, color);

  • imageEditor.getData( **[auto crop] **);

  • imageEditor.enableSelect();

  • imageEditor.disableSelect();

  • imageEditor.enableClickAndDelete(options);

  • imageEditor.disableClickAndDelete();

color para floodFill é {r:0, r:0, b:0, a:0}
options para enableClickAndDelete é {selectorTolerance: '', selectorContinuo: ''}

Opções

  • imageEditor.limitUndo = (int) default: 10
  • imageEditor.loadImagesOnCenter = (boolean) default: true
  • imageEditor.msgFileError = (string) default: 'Formato de imagem não suportado'

Bugs

  • Não suporta carregamento por darg and drop no Safari
  • Não funciona no IE7

imageeditor's People

Contributors

dioubernardo avatar

Stargazers

Abanoub Hanna avatar Evandro Guedes avatar

Watchers

James Cloos avatar  avatar

Forkers

xiyang2011

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.