You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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.
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)
The text was updated successfully, but these errors were encountered: