Open asheeshthakur opened 6 years ago
I commented some line in the file to allow image should select any size and get a preview.
key: 'onPreImageLoaded', value: function onPreImageLoaded() { if (this.shouldRejectImage({ imageWidth: this.preImage.width, imageHeight: this.preImage.height, previewSize: this.previewSize, maxZoom: this.options.maxZoom, exportZoom: this.options.exportZoom //,smallImage: this.options.smallImage //For Allow Any size image to be make Selected })) { this.onImageError(_constants.ERRORS.SMALL_IMAGE); if (this.image.src) { this.setImageLoadedClass(); } return; }
After this am able to select any image but image is coming stretched, So for that what I have to do.
Thanks for your response.
I commented some line in the file to allow image should select any size and get a preview.
After this am able to select any image but image is coming stretched, So for that what I have to do.
Thanks for your response.