question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changing image formats (PNG to JPG) itself

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
saqibsoftwarescommented, Aug 2, 2020

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 Max File Size option just like you have added mime type option. This should disable all the images in selection list those are greater than allowed file size.

1reaction
saqibsoftwarescommented, Aug 2, 2020

Thanks a lot. Confirmed. Issue has been resolved in v1.7.4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Need to Switch a PNG to JPG? How to Convert Image and ...
Go to File > Save as and open the Save as type drop-down menu. You can then select JPEG and PNG, as well...
Read more >
How to convert png to jpg on macOS - MacPaw
Click File > Export. Name your file and select a location to save it. Change the format dropdown menu to JPG and adjust...
Read more >
Need to Convert an Image to a Different Format? Use These 6 ...
Need to convert image? We share 6 great tools to help you change image formats to/from JPG, PNG, GIF, WebP, and lots more....
Read more >
Photos Automatically Converting PNG to JPG?
Editing the PNG will result in a JPEG by default without transparency. But you can switch the file format to TIFF in the...
Read more >
PNG to JPG – Convert PNG images to JPEG
This free online tool converts your PNG images to JPEG format, applying proper compression methods. It aslo supports mass conversion and bulk download....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found