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

No option to specify Saved image extension to png etc. it always saved as JPG #94

Closed
akhileshsharma opened this issue Jun 18, 2020 · 8 comments
Milestone

Comments

@akhileshsharma
Copy link

Currently when Crop and or compress used or with Camera images there is no option to provide desired image extension while getImageFile method of fileUtils have scope for specifying file extension to save file with desired file extension. Please fix and update.

Its a great library and I guess few more small and quick fixes will make it better.

@akhileshsharma
Copy link
Author

It would be great if just like .saveDir() can include options like .saveFileName() and .saveFileExt()
For .saveFileExt() option values can be restricted to .jpg, .png, .bmp, .jpeg

@Dhaval2404 Dhaval2404 added this to the v1.7.3 milestone Jul 17, 2020
Dhaval2404 added a commit that referenced this issue Jul 17, 2020
Fixed PNG image saved as JPG after crop issue

#94
@akhileshsharma
Copy link
Author

akhileshsharma commented Jul 18, 2020 via email

@Dhaval2404
Copy link
Owner

@akhileshsharma I have not released a version yet! Hopefully today or tomorrow I will release a new version after thorough testing.

Thank you!

@akhileshsharma
Copy link
Author

Yes @Dhaval2404 noticed. Looking forward.

@Dhaval2404
Copy link
Owner

@akhileshsharma Please check out the latest version. Thank you so much for reporting the issue.

@akhileshsharma
Copy link
Author

Great! Thanks.

@batadamnjanovic
Copy link

batadamnjanovic commented Nov 18, 2020

@Dhaval2404
So, can we change an extension of a file?
Example: If an image is .png, I want to change it to .jpg after cropping or selecting.

@Dhaval2404
Copy link
Owner

@batadamnjanovic As of now, We can't do that in lib.

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

3 participants