cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

FileType #150

Closed limpep closed 7 years ago

limpep commented 7 years ago

Hi,

Trying to use fileType setting and understand what it does, but not sure if I have this correct.

So if I set the FileType to 'jpg' and I upload a png, does this then set the png image to a jpg? Also should the base64 be set as jpg too? Thanks.

cstefanache commented 7 years ago

I did some refactoring and by default fileType is undefined. By default the cropper will try to preserve default image format. If defined will convert to preffered: 'image/png', 'image/jpeg' etc.

limpep commented 7 years ago

Just tested and its working as expected. Thanks.