Coder Social home page Coder Social logo

taylorpzreal / ngx-cropper Goto Github PK

View Code? Open in Web Editor NEW
14.0 5.0 7.0 1.42 MB

An Angular image plugin, includes upload, cropper, save to server.

License: MIT License

TypeScript 62.50% JavaScript 29.69% CSS 7.81%
cropper angular ngx-cropper upload-images crop angular6

ngx-cropper's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m @TaylorPzreal
  • ๐Ÿ‘€ Iโ€™m interested in coding.
  • ๐ŸŒฑ Iโ€™m currently learning WebGL.

HTML Render

  flowchart LR;
      A[CI MULTI CHAPTCHA]-->B{Select captcha service by developer?};
      classDef green color:#022e1f,fill:#00f500;
      classDef red color:#022e1f,fill:#f11111;
      classDef white color:#022e1f,fill:#fff;
      classDef black color:#fff,fill:#000;
      B--YES-->C[How to use?]:::green;
      
      C-->U[I choose recaptcha.]:::green;
      U--Views-->Q["echo CIMC_JS('recaptcha');\n echo CIMC_HTML(['captcha_name'=>'recaptcha']);"]:::green;
      U--Controller-->W["CIMC_RULE('recaptcha');"]:::green;
      
      C-->I[I choose arcaptcha.]:::white;
      I--Views-->O["echo CIMC_JS('arcaptcha');\n echo CIMC_HTML(['captcha_name'=>'arcaptcha']);"]:::white;
      I--Controller-->P["CIMC_RULE('arcaptcha');"]:::white;
      
      C-->X[I choose bibot.]:::red;
      X--Views-->V["echo CIMC_JS('bibot');\n echo CIMC_HTML(['captcha_name'=>'bibot']);"]:::red;
      X--Controller-->N["CIMC_RULE('bibot');"]:::red;
      
      B--NO-->D[How to use?]:::black;
      D---Views:::black-->F["echo CIMC_JS('randomcaptcha');\n echo CIMC_HTML(['captcha_name'=>'randomcaptcha']);"]:::black; 
      D---Controller:::black-->T["CIMC_RULE('archaptcha,recaptcha,bibot');"]:::black;

ngx-cropper's People

Contributors

abdatta avatar taylorpzreal avatar zekexu avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

ngx-cropper's Issues

rxjs 6 compatibility issues.

RROR in ./node_modules/ngx-cropper/dist/ngx-cropper.service.js
Module not found: Error: Can't resolve 'rxjs/add/operator/catch' in '/var/www/workspace/appduction/careem/ambassador-admin-panel/node_modules/ngx-cropper/dist'
ERROR in ./node_modules/ngx-cropper/dist/ngx-cropper.service.js
Module not found: Error: Can't resolve 'rxjs/add/operator/map' in '/var/www/workspace/appduction/careem/ambassador-admin-panel/node_modules/ngx-cropper/dist'

"rxjs": "^6.0.0"
"@angular/core": "^6.0.3"

Build AOT error

I use angular 5.

When i build aot, i have error

ERROR in Error: Unexpected value 'NgxCropperModule in /Users/admin/dung/signal/node_modules/ngx-cropper/dist/ngx-cropper.module.d.ts' imported by the module 'ProfileModule in /Users/admin/dung/signal/src/app/users/profile/profile.module.ts'. Please add a @NgModule annotation.

image

Cannot select same image again

If I select one image and then cancel or apply, I cannot use the upload button to select that same image again, as the modal doesn't open.
This can happen when :

  1. I mistakenly cancel but want to select that image again.
  2. I cropped incorrectly and pressed apply, and want to reselect that same image to correctly crop it.

This happens because the modal is only triggered when there is a change in the file in the input field.
I am making a pull request to solve this.

Remove dependency over id=inputImage

Due to the same id, it is not possible to have multiple instances of this module on the same page (for example if used in a for loop). The last instance only gets triggered bcuz they all have the same id. Kindly remove this dependency over id.
Also, it would be nice if the DOM is not directly manipulated, as it might cause a problem in a PWA.

I'll try to fix it myself as well, and if I succeed I'll send a pull request.

Besides, it is a very nice and useful module. Thanks!

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.