Comments (10)
Add ImageCropperComponent in AppModule declarations
import {ImageCropperComponent} from 'ng2-img-cropper';
@NgModule({
declarations: [
.....,
ImageCropperComponent,
....
],
imports: [
.....
],
providers: [.....],
bootstrap: [AppComponent]
})
export class AppModule {}
from angular2-img-cropper.
Hi @cstefanache,
Can you export ngModule with the component, because with the angular rc.6 update they removed the deprecated directives prop from @component decorator
from angular2-img-cropper.
You should import the module and put that in the imports section.
from angular2-img-cropper.
Hello,
I updated the sample plnkr: https://embed.plnkr.co/V91mKCNkBQZB5QO2MUP4/
to use rc.5 and it seems to work:
from angular2-img-cropper.
Any news on this issue?
from angular2-img-cropper.
hi, unfortunately still can't configure it in my environment for the same reasons mentioned previously
(plnkr is also not working in my browsers: the image simply doesn't appear in canvas after file selection. but probably the issues aren't connected)
any further help would be highly appreciated. best regards
from angular2-img-cropper.
There was a problem with the cropper that was fixed this morning and released on 6.0.1 - that is why the plnkr did not work - can you please try now so we can make sure that it is still reproducible for you with 6.0.1 as well?
from angular2-img-cropper.
I am also facing this. What is the solution for this ?
I am using ver 0.7.1 of image-cropper component. Any help would be appreciated.
from angular2-img-cropper.
@jonscyriac What you give causes another error
ERROR in Type ImageCropperComponent in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts is part of the declarations of 2 modules: ImageCropperModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/src/app/app.module.ts! Please consider moving ImageCropperComponent in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts to a higher module that imports ImageCropperModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/src/app/app.module.ts. You can also create a new NgModule that exports and includes ImageCropperComponent in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperComponent.d.ts then import that NgModule in ImageCropperModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/node_modules/ng2-img-cropper/src/imageCropperModule.d.ts and AppModule in /Users/gordon/workspace/CrewGuru/crewguru-web-ng2/src/app/app.module.ts.
from angular2-img-cropper.
hello, I uploaded the image in the image cropper. after refreshing the page the image in the cropper disappear. there will be a default link for that. but I want to load my uploaded image in the image cropper until I input another image file in the image cropper. hope to get a solution as soon as possible.
from angular2-img-cropper.
Related Issues (20)
- How to get cropped image in ts file with a specified with and height HOT 7
- How to upload the image on click canvas area instead of speared upload button HOT 6
- How to enable the backdrop while cropping the image HOT 1
- Loading Indicator HOT 1
- Release update to NPM HOT 6
- cropperSettings.minWidth and cropperSettings.minHeight not working
- Remove Drag Center
- Cropper won't Compile AoT HOT 4
- Image Crop Image not Display in Model Popup HOT 1
- 'l']]]]]]]\
- Angular 6 compatibility HOT 1
- this.cropperSettings.rounded = true ; - don't work
- Image cropper is not working with PNG image format HOT 1
- Please add version tags to the repository
- .
- Cropper doesn't produce a rounded cropper image
- support upload base64 image with progress bar after cropper image?
- Unable to add custom values in onCrop method
- Export declare abstract class Renderer2
- loading an image in the ngx image cropper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-img-cropper.