-
Notifications
You must be signed in to change notification settings - Fork 346
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
Changing image formats (PNG to JPG) itself #105
Comments
@saqibsoftwares Have you tried in v1.7.3? I think the issue is resolved in this version. Please let me know if the issue still persists.
|
Thank you for replying. Here is the file name which I'm giving it as source file: Here is the new file name it returning after compressing/resizing: I have even tried to add mime type ( Here is the full code I'm using
|
I tried to dig into the library to provide you more information, inside CompressionProvider class there is a method called May be the above information could help you to find the problem. Use the large size PNG image 3 or 4 MB in size and try to compress is with very small size like 500KB to reproduce the problem. Can you please also give us max file size selection limit so we can restrict user to select large files. |
@saqibsoftwares Thank you so much for the detailed information. I will get back to you shortly. I really appreciate you putting your effort behind improving this lib. This will be helpful to lots of Users. |
Don't thank me. What I did is nothing as compared to what you have done for all of us by creating this amazing library. Just one more request that please add |
Fixed image extention change to PNG on Compress issue #105
@saqibsoftwares I have fixed the issue now. You can verify the changes in v1.7.4. Thank you! |
Thanks a lot. Confirmed. Issue has been resolved in v1.7.4. |
@Dhaval2404 I'm still facing image format issue in version 2.1 |
Hi,
The library is changing selected PNG image into JPG image itself when
.maxResultSize
and.compress
functions are used with the Companion.ImagePicker.Companion.with(this).galleryOnly().maxResultSize(Globals.MAX_IMAGE_WIDTH, Globals.MAX_IMAGE_HEIGHT).compress(Globals.MAX_IMAGE_SIZE_KB).start
Is there any way to keep the original format?
The text was updated successfully, but these errors were encountered: