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

Error: unknown JPEG marker f6c0 #109

Open
necudeco opened this issue Oct 7, 2022 · 0 comments
Open

Error: unknown JPEG marker f6c0 #109

necudeco opened this issue Oct 7, 2022 · 0 comments

Comments

@necudeco
Copy link

necudeco commented Oct 7, 2022

Hi Guys,

I am trying to open a JPG image created by chrome.tabs.captureVisibleTab function

const screenshotUrl = await chrome.tabs.captureVisibleTab( winID );

screenshotUri its a data image URL ... like this " data:image/jpeg;base64,/9j/4AA"

I received this URI on nodejs

let imageBuffer = dataUriToBuffer(imageString);
let img = await Jimp.read( imageBuffer );

This is the same image I tried to process with Jimp

Regards

1665141556613-1200_850

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

1 participant