croppie

Open Modal After selecting Image File from Browser

折月煮酒 提交于 2019-12-24 20:16:21
问题 I'm using angular-croppie to crop my images. the cropper is working fine but there is a problem. I want to open the cropper in The Modal. But when I click on the choose file button the modal open with the file explorer window, I want to open the modal after selecting an image from the file explorer and then show that image in the cropper. I'm using AngularJs and Jquery for this function. CodePen link for my code is here I've tried my best to explain this issue but if you still don't

Angular - Can't resolve 'croppie' in node_modules\ngx-croppie\esm5

有些话、适合烂在心里 提交于 2019-12-13 03:47:40
问题 I'm trying to add a croppie to my Angular project, and by following this link: https://www.npmjs.com/package/ngx-croppie I executed this command : npm i ngx-croppie And this added croppie and ngx-croppie to my project in node_modules, but now I'm facing next error: And Indeed when I open my component, there is a this issue: And in my node_modules there is no croppie folder but in node_modules/@types/ croppie exist as in next image: 回答1: please uninstall ngx-croppie package and again install

Output Image is always PNG , croppie not keeping original Format

混江龙づ霸主 提交于 2019-12-11 16:01:05
问题 Output Image is always PNG, croppie not keeping original Format. I use croppie library I want to get the original image extension, but I got or jpeg or png. vanilla.result({ type: 'base64', format: 'jpeg', size: 'original' }).then(function (resp) { $('.cr-boundary').hide(); $('.cr-slider-wrap').hide(); $('#hidden_image_input').val(resp); $('#profile_image').attr('src', resp); $('#profile_image').show(); }); 来源: https://stackoverflow.com/questions/57701710/output-image-is-always-png-croppie