Compressor and excluding file types
Initial checklist
- [x] I understand this is a bug report and questions should be posted in the Community Forum
- [x] I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
I chain .use(Compressor.. and .use(Tus.. for my uploading needs. However, I only want to compress image/jpeg and image/png, not image/gif. I used the mimeType to compress to image/webp however that includes gifs as well, so I thought convertTypes option with an array for jpeg and png only would not compress the gif files. Sadly, it still does.
Expected behavior
Using 'convertTypes' with Compressor should only compress those types of files and still send the remaining files to Tus.
Actual behavior
Compressor compresses any tpye of file without honoring convertTypes array.
Hi. We pass the convertTypes option directly to CompressorJs. I just tried it on their demo page:
https://fengyuanchen.github.io/compressorjs/
When I drag-drop a gif file, even though convertTypes is set to image/png, it does convert the gif to png. So I think it's probably a bug in that library.