-
Notifications
You must be signed in to change notification settings - Fork 195
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
Not working with png, should allow only jpg #42
Comments
Indeed. PNG files just get bigger instead of compression. Tested on Chrome. |
in the demo page, the 2.7 mb after process will grow to 3.1 mb, which drives me crazy |
PNG needs an option to change its kind to PNG-8, usually good enough for screenshots, which is what I wanted to use this library for. |
canvas.toDataURL(type, encoderOptions): encoderOptions only can used to image/jpeg or image/webp. This is illustrated on the MDN. |
The compress function allows choosing mimetype, but when using png the images only get bigger.
The text was updated successfully, but these errors were encountered: