-
Notifications
You must be signed in to change notification settings - Fork 496
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
Error when trying to export diagram as a jpg file #1103
Comments
58 tasks
Hint: Change // generateImage.js
// list of defined encodings
const ENCODINGS = ['image/png', 'image/jpeg'];
function generateImage(type, svg) {
const encoding = 'image/' + type;
let context, canvas;
if (ENCODINGS.indexOf(encoding) === -1) {
throw new Error('<' + type + '> is an unknown type for converting svg to image');
}
// ... |
Closed via #1106 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
I can't export diagram as a jpg file. It happens on MacOS as well as on Linux.
Steps to Reproduce
Expected Behavior
A jpg file is saved.
Environment
The text was updated successfully, but these errors were encountered: