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
MIME types cannot be specified as part of the takePhoto() method. The Blob that is returned is the browser default MIME type.
Description
I'm currently using the imagecapture-polyfill library, but find myself having to fork it and use it as a separate library because the takePhoto() method doesn't allow for the specification of a MIME type in its blob creation.
It also appears that the takePhoto() w3c specification does take an argument for PhotoSettings, but that seems like it would be an inappropriate place to shoehorn the MIME type.
Proposal
Update the takePhoto() method within the Media Capture Image spec to include the following function signature:
Problem
MIME types cannot be specified as part of the takePhoto() method. The Blob that is returned is the browser default MIME type.
Description
I'm currently using the imagecapture-polyfill library, but find myself having to fork it and use it as a separate library because the takePhoto() method doesn't allow for the specification of a MIME type in its blob creation.
It also appears that the takePhoto() w3c specification does take an argument for PhotoSettings, but that seems like it would be an inappropriate place to shoehorn the MIME type.
Proposal
Update the takePhoto() method within the Media Capture Image spec to include the following function signature:
Pass this MIME type as part of the canvasElement.toBlob() call within the
takePhoto()
method so that the Blob can have the proper MIME type prepended.Related Work
The text was updated successfully, but these errors were encountered: