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

[Bug] fail to transform image in electron 22 #38

Closed
1 of 2 tasks
subframe7536 opened this issue Jan 27, 2023 · 0 comments · Fixed by #39
Closed
1 of 2 tasks

[Bug] fail to transform image in electron 22 #38

subframe7536 opened this issue Jan 27, 2023 · 0 comments · Fixed by #39
Labels
bug Something isn't working

Comments

@subframe7536
Copy link

subframe7536 commented Jan 27, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Image version

1.5.0

System version

windows 11

Node.js version

16.15.0

Minimal reproduce step

app.whenReady().then(() => {
  const win = new BrowserWindow()
  win.show()
  const data = readFileSync('test.png')
  new Transformer(data)
    .fastResize({ width: 400, filter: 3 })
    .jpeg(70)
    .then((buffer) => {
      writeFileSync(`111.jpg`, buffer)
    }).catch(e => {
      console.error(e)
    })
})

What did you expect to see?

get image file

What did you see instead?

the only error info: Error {code: 'Unknown', stack: 'Error', message: ''}

Anything else?

maybe see lovell/sharp#3384

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@subframe7536 subframe7536 added the bug Something isn't working label Jan 27, 2023
@subframe7536 subframe7536 changed the title [Bug/Help?] fail to transform image in electron [Bug/Help?] fail to transform image in electron 22 Jan 27, 2023
@subframe7536 subframe7536 changed the title [Bug/Help?] fail to transform image in electron 22 [Bug] fail to transform image in electron 22 Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant