Ich versuche, Bild von 4160 * 3120 Größe zu laden und mit ng2 Image Cropper das Verhältnis von hochgeladenen Bild zu erhalten. aber es wird ein fixes Bild (750 * 400) Bild jedes Mal hochgeladen, unabhängig von der tatsächlichen Größe des Croppers.angular2-img-cropper nicht die Größe der tatsächlichen Bild beibehalten
this.cropperSettings2 = new CropperSettings();
this.cropperSettings2.width = 750;
this.cropperSettings2.height = 400;
this.cropperSettings2.keepAspect = true;
this.cropperSettings2.croppedWidth = 750;
this.cropperSettings2.croppedHeight = 400;
this.cropperSettings2.canvasWidth = 427.367;
this.cropperSettings2.canvasHeight = 224;
this.cropperSettings2.minWidth = 750;
this.cropperSettings2.minHeight = 400;
this.cropperSettings2.rounded = false;
this.cropperSettings2.minWithRelativeToResolution = false;
this.cropperSettings2.cropperDrawSettings.strokeColor = 'rgba(255,255,255,1)';
this.cropperSettings2.cropperDrawSettings.strokeWidth = 2;
this.cropperSettings2.noFileInput = true;
this.data2 = {};
Ist es ein Fehler oder mache ich etwas falsch?
Kannst du zeigen, was du in Cropped Event machst? –