Code Monkey home page Code Monkey logo

angular-cropper's People

Contributors

alexdrans avatar tobiasbueschel avatar twhitbeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-cropper's Issues

Some images are saved as transparent

Hi Tim,

Some images are saved as "transparent" images - when not using Chrome.
It can be reproduced on FireFox. I haven't tried other browsers.

It would be great if you could solve this.
Thanks,
Victor

Events functionality

It would be nice if you add some events, like onZoomEnd, onMousemoveEnd (onTouchmoveEnd) and may be some other. They can be used when you dont need to push crop button and you want to get cropped image dataUrl when user changes image inside canvas.

Usage without npm or bower

Got an email with this request:

I was trying to implement your cropper program for AngularJS, however I need to do this without using Bower or NPM. I was wondering if you can walk me through it.

Rotating

Hi,

I tried to use it in a cordova project, it is a awesome solution for mobile cropping.

but without rotating it isn't enough because generally phone photos are not straight.

I tried to add this functionality but move function didn't work properly and my JS ability is no so well :(

Maybe you can add it when you find time,

thanks.

Issue with Firefox and Mobile

Hi Tim,

Thanks for this nice cropper - really easy to implement :)

I've had 2 issues:

  1. Firefox on desktop: the canvas is not always being filled (especially not after the first attempt to select a file).
  2. I've tried it on my mobile device (Samsung S4 - Chrome) - and the image inside the canvas cannot be moved.

It would be great if you could fix it.

Thanks,
Victor

Only zoom in on wheel any direction

In Google Chrome 44 image only zoom in on wheel event. When I logged event, there wasn't deltaY property, but in originalEvent was.

Works correctly only if change line:
if (e.deltaY < 0) {

to

if (e.originalEvent.deltaY < 0) {

zoom out on init

Hi,
Can you please tell me if I can load an image with zoom out when I'm loading an image?

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.