We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I understand the source prop allows us to specify what type of base64 string to output (jpeg or png).
source
But is there a way to tell the source of the image?
Use case: firebase needs to know if the image is a png or jpg... i have no way of telling what kind of of file was selected. I hope this makes sense.
The text was updated successfully, but these errors were encountered:
imgstr is the base64 encoded string. if imgstr[0] == '/': ext = 'jpg' elif imgstr[0] == 'i': ext = 'png'
if imgstr[0] == '/': ext = 'jpg' elif imgstr[0] == 'i': ext = 'png'
Sorry, something went wrong.
No branches or pull requests
Hi, I understand the
source
prop allows us to specify what type of base64 string to output (jpeg or png).But is there a way to tell the source of the image?
Use case: firebase needs to know if the image is a png or jpg... i have no way of telling what kind of of file was selected. I hope this makes sense.
The text was updated successfully, but these errors were encountered: