Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options not working #31

Open
mohammad5055 opened this issue Nov 29, 2022 · 0 comments
Open

Options not working #31

mohammad5055 opened this issue Nov 29, 2022 · 0 comments

Comments

@mohammad5055
Copy link

Hello,

If I upload a gif, the image compressor will still compress it regardless of the convertSize or convertTypes option I pass in.

I have the following code:

this.uppy = Uppy({
restrictions: {
maxFileSize: 10000000,
maxNumberOfFiles: 1,
allowedFileTypes: [ 'image/png', 'image/jpeg', 'image/gif' ]
}
})
.use(ImageCompressor, {
maxWidth: 2048,
maxHeight: 2048,
convertTypes: ['image/png','image/jpeg'],
convertSize: 1000000
})

Why aren't the options working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant