scottcheng / cropit

A "customizable crop and zoom" jQuery plugin.
http://scottcheng.github.io/cropit/
MIT License
874 stars 307 forks source link

Cropit rejecting image when cropper size larger than 819px #273

Open bbhattaraisumit88 opened 6 years ago

bbhattaraisumit88 commented 6 years ago

I am trying to crop images using different cropper sizes when I apply width of cropper till 819px it is working fine but when I apply width of cropper as 820px; cropper is displayed but image is not shown. Below is my code:

   $('.image-editor').cropit({
                            exportZoom: 1.25,
                            imageBackground: true,
                            imageBackgroundBorderWidth: 200,
                            width: 820px,
                            height: AdvertisementConfig.config.imgHeight,
                            initialZoom: 'image',
                            imageState: {
                                src: AdvertisementConfig.config.filepath + '/' + AdvertisementConfig.config.defaultAd,
                            },

                        });