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

iOS .imageAsResized() on image/jpeg generates a blob with mimeType image/png #334

Open
francesco-lombardo opened this issue Jun 20, 2023 · 0 comments

Comments

@francesco-lombardo
Copy link

francesco-lombardo commented Jun 20, 2023

On iOS .imageAsResized() on image/jpeg generates a blob with mimeType image/png

blob = ImageFactory.compress(blob, 0.8, ImageFactory.JPEG);

// now blob has mimeType image/jpeg

blob = ImageFactory.imageAsResized(blob, { width: 1000, height: 1000, quality: 0.8 }, ImageFactory.JPEG);

// now blob has mimeType image/png

P.S. The third parameter on iOS is not supported yet

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

1 participant