-
Notifications
You must be signed in to change notification settings - Fork 79
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
The jpg data is not readable on Mac #22
Comments
I am guessing it's because its an MJPEG frame, which excludes certain elements needed for JPEG decompression (and are assumed to be standard in MJPEG) Some browsers/fileviewers will fix this and some wont in my experience. See also https://github.com/jcupitt/libvips/issues/253 |
true. Is there a way to add the header info so that the captured data can be viewed on IPhone and Mac? |
I posted a solution on the thread I linked before. |
Thanks for the link! It seems to be working. I tested on Mac. Adapted type script:
|
The jpg file generated by the sample code can't be opened on Mac, or safari. But It is viewable in Chrome.
Is it because the jpg file does not contain meta header data?
I also tried to encode that data in base64 and embedded in HTML page. The image is not able to show in safari.
The text was updated successfully, but these errors were encountered: