Respond file extension same with respond mime type.
Actual behaviour
Respond file extension different with respond mime type.
Steps to reproduce
This is happen when I set option compressImageQuality less than 1, and I pick PNG image from gallery.
What I got is response path uri still with png extension
file:///storage/emulated/0/Pictures/Screenshot_2018-03-15-16-21-12-451_com.miui.home-compressed.png
but the response mime is jpeg image/jpeg
I know that when set compressImageQuality, the image is converted to JPEG. So I think the response path uri should be .jpg as well.
This problem disappear when I omit the compressImageQuality option.
But I need that option still there because I need to compress the image before upload it to server
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
Respond file extension same with respond mime type.
Actual behaviour
Respond file extension different with respond mime type.
Steps to reproduce
This is happen when I set option compressImageQuality less than 1, and I pick PNG image from gallery. What I got is response path uri still with png extension
file:///storage/emulated/0/Pictures/Screenshot_2018-03-15-16-21-12-451_com.miui.home-compressed.png
but the response mime is jpeg
image/jpeg
I know that when set compressImageQuality, the image is converted to JPEG. So I think the response path uri should be .jpg as well.
My setting
This problem disappear when I omit the
compressImageQuality
option. But I need that option still there because I need to compress the image before upload it to server