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

image.toJpeg is not a function #6

Open
nuthinking opened this issue Jun 13, 2018 · 1 comment
Open

image.toJpeg is not a function #6

nuthinking opened this issue Jun 13, 2018 · 1 comment

Comments

@nuthinking
Copy link

Running the example on the latest Electron on Mac I get this error:

Uncaught TypeError: image.toJpeg is not a function
at /Users/.../node_modules/electron-recorder/index.js:49
at CallbacksRegistry.apply (/Users/.../node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/api/callbacks-registry.js:47)
at EventEmitter.ipcRenderer.on (/Users/.../node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/renderer/api/remote.js:261)
at emitThree (events.js:136)
at EventEmitter.emit (events.js:217)

@WeaverOfTheWeb
Copy link

Hey, I've just come across this error too and it turns out the code is slightly wrong as it should be 'image.toJPEG(100)'. You can edit this within the index.js file within the electron-recorder module to fix this.

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

2 participants