-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
image cropping is always png #102
Comments
From what I see you have already set a type. If the type was not set in the configuration, it will result in the same source format. e.g myConfig: ImgCropperConfig = {
autoCrop: true,
width: 150, // Default `250`
height: 150, // Default `200`
fill: '#ff2997', // Default transparent if type = png else #000,
type: 'image/jpeg' // <------------ Remove this
}; BTW, the type of format you set is not correct, it can be Sorry for not documenting this, I'm working on that. |
I have the same problem and I am not setting any type for config
my input is I had to manually set the type
"@alyle/ui": "^10.3.0",
|
馃 Bug report
Describe the bug
the image cropper is always return a png image on crop and not giving me the original image type
Screenshots
Which versions of Angular, Alyle UI, OS, TypeScript, browsers are affected?
Alyle UI Version:
v2.9.6
Angular Version:
The text was updated successfully, but these errors were encountered: