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

Add export options to improve the returned image output #62

Merged
merged 4 commits into from
Mar 2, 2021
Merged

Add export options to improve the returned image output #62

merged 4 commits into from
Mar 2, 2021

Conversation

foxylion
Copy link
Contributor

@foxylion foxylion commented Nov 3, 2020

  • Add support to export the image in a square format (3428360)
    This commits adds a prop that allows the export of the cropped image through onCrop to be in a squared format of the cropped area.
    This allows the storage of a squared image to be future-proof, when deciding to use squared images instead of circular images.
  • Add support to export the image as JPEG (5d0a36e)
    This commit allows the returned image in onCrop to be an jpeg instead of in a PNG format. This simplifies the workflow when working with avatar images that should be in JPEG format.
  • Add support to export images always in a prefered size (9365157)
    This is helpful to ensure all profile images do have the same size. It also allows the exported images to be a higher quality to what is displayed in the circle.
  • Add documentation for the new options (23f1d14)

This commits adds a prop that allows the export of the cropped image
through onCrop to be in a squared format of the cropped area.

This allows the storage of a squared image to be future-proof, when
deciding to use squared images instead of circular images.
This commit allows the returned image in onCrop to be an jpeg instead
of in a PNG format. This simplifies the workflow when working with
avatar images that should be in JPEG format.
This is helpful to ensure all profile images do have the same size.
It also allows the exported images to be a higher quality to what
is displayed in the circle.
@masonlee
Copy link

masonlee commented Mar 1, 2021

I've been using this foxylion fork in production-- I think these are great features. Thank you all for working on this project.

@kirill3333 kirill3333 merged commit 7efdc60 into kirill3333:master Mar 2, 2021
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

Successfully merging this pull request may close these issues.

4 participants